How to create a Checkbox column dynamically
How to create a Checkbox column dynamically

I have this issue and don't know how to result yet. Any help/suggestion from you will be greatly appreciated
I have a Datatable which always been created dynamically.
By created dynamically, I meant whenever the table is loaded, a list of column objects (json format) will be used to define the table's columns.
I struggle to find a way how to create a checkbox column with some callback funtions, of course this must be define in the column object.
Thanks
Lan Nguyen
This discussion has been closed.
Replies
the code below will check the columns type using the createdRow. Where appropriate, it will add a checkbox. You can see the whole thing work here http://jsbin.com/wuwaxac/edit?html,js,output but here are the important parts.
You could use
columns.render
and just have it return the HTML needed for the checkbox.Allan