fnCreatedCell and changing property of cell
fnCreatedCell and changing property of cell
ender_wiggin30
Posts: 7Questions: 0Answers: 0
I have a simple function, trying to display a tri-state checkbox
[code]
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol) {
var htmlString = '';
htmlString = '';
$(nTd).html(htmlString);
if (sData === 'mixed') {
$(nTd).prop("indeterminate",true);
}
}
[/code]
This does not work, I assume that's because the DOM element was not created when I updated the html. How can I update the property of that checkbox ? I tried using fnRowCallback and that does not seem to be working as well.
[code]
"fnCreatedCell": function(nTd, sData, oData, iRow, iCol) {
var htmlString = '';
htmlString = '';
$(nTd).html(htmlString);
if (sData === 'mixed') {
$(nTd).prop("indeterminate",true);
}
}
[/code]
This does not work, I assume that's because the DOM element was not created when I updated the html. How can I update the property of that checkbox ? I tried using fnRowCallback and that does not seem to be working as well.
This discussion has been closed.
Replies