Add check box in specific cells

Add check box in specific cells

Arbalest1027Arbalest1027 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

  • kthorngrenkthorngren Posts: 21,343Questions: 26Answers: 4,954
    Answer ✓

    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 the row attribute of the meta 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

Sign In or Register to comment.