Unable to get property 'className' of undefined or null reference
Unable to get property 'className' of undefined or null reference
omkarraj
Posts: 2Questions: 0Answers: 0
i am using DataTable 1.9, i have included all js related to it. i want to make a cell editable on click of cell. i have found example related to this so i have written same code but it is giving me error that unable to get 'className' of null reference.
oTable.$('td').editable('', {
"callback": function (sValue, y) {
debugger;
var aPos = oTable.fnGetPosition(this);
oTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
debugger;
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition(this)[2]
};
},
"height": "14px",
"width": "100%"
});
Thanks in advance.
also i want to make only one column's cell editable. is it possible using DataTable function ..?
oTable.$('td').editable('', {
"callback": function (sValue, y) {
debugger;
var aPos = oTable.fnGetPosition(this);
oTable.fnUpdate(sValue, aPos[0], aPos[1]);
},
"submitdata": function (value, settings) {
debugger;
return {
"row_id": this.parentNode.getAttribute('id'),
"column": oTable.fnGetPosition(this)[2]
};
},
"height": "14px",
"width": "100%"
});
Thanks in advance.
also i want to make only one column's cell editable. is it possible using DataTable function ..?
This discussion has been closed.