fnCreatedCell and changing property of cell

fnCreatedCell and changing property of cell

ender_wiggin30ender_wiggin30 Posts: 7Questions: 0Answers: 0
edited November 2013 in General
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.

Replies

  • ender_wiggin30ender_wiggin30 Posts: 7Questions: 0Answers: 0
    Datatables was not able to update any properties in the dom model. Solved it using jquery as usual. Thanks for anyone who took time to read it and wondered.
This discussion has been closed.