Add check box in specific cells
Add check box in specific cells
Arbalest1027
Posts: 1Questions: 1Answers: 0
Description of problem: Hi, is it possible to have checkbox only in specific rows, for example in column 2, I want to have first two rows as textbox and third row as a checkbox.
I can only create a datatable with checkbox in every single row right now.
Thanks.
This question has an accepted answers - jump to answer
Answers
It is possible. You can use
columns.render
to render either a checkbox or text input based on a condition. Is there a data point in the row that would determine if you want to display the checkbox? Possible you can use therow
attribute of themeta
parameter to determine the first two rows. This may not work if the table is sorted as the index doesn't change when sorting changes.Kevin