Can I make My Table Editable
Can I make My Table Editable
adevade
Posts: 8Questions: 1Answers: 0
$.ajax({
type: "GET",
url: [Server Controller IP],
crossDomain: true,
dataType: "json",
async: false,
cache: false,
beforeSend: function () {
},
success: function (data, status, xhr) {
var objData = new Object();
objData = JSON.parse(data);
var table= $('#example').DataTable({
//"dataSrc": objData,
colReorder: true,
data: objData,
//"serverSide": true,
"processing": true,
"columns": [
{
"data": "dbName",
"title":"Data Base Name" ,
"editField": "dbName" **//What is the Usage here if my columns are not editable after applying it**
},
{ ....},
{.....}
],
select: true,
});
I am using Edtor version 1.6.5
This discussion has been closed.
Replies
Hi,
The documentation for Editor is available here. The
editField
option simply tells Editor what field is to be edited when editing is activated on that column. You actually need to configure an Editor instance as well as the DataTables one.Allan