Checkbox column in DataTables
Checkbox column in DataTables
rsreagan
Posts: 7Questions: 0Answers: 0
I am loading my datatable through sAjaxSource, and I'm specifying my columns individually with aoColumns. In the JSON returned from the server, I'm passing in a boolean value represented by a 1 or a 0. This is arbitrary - I could represent it any way I like. Can someone explain to me how I can display a checkbox in my datatable? I am also using the Editor, and need to be able to update the value within the Editor edit dialog. I don't need to create new rows though. I've been through the docs and am still not sure? Anyone? Thanks in advance!
This discussion has been closed.
Replies
[code]
...
{ "mData": "IsAssociated", "mRender": function (data, type, full ) {
if (data == true)
{
return '';
}
else
{
return '';
}
}
},
...
[/code]
Is this the preferred way to accomplish this?
Allan