About the checkbox selection in datatable

About the checkbox selection in datatable

cmanskycmansky Posts: 9Questions: 4Answers: 0

Dear all,
I am a beginner in using the datatable with Django. I already created the checkbox selection for my datatable successfully, the table only allows checking one row.
My question: Is it possible to set the column default "checked" when the page is rendering based on condition?
I already tried adding {% if ... %} <tr class="selected"> in the target html, it can show the click and fulfill my expectation, but there is a problem that occurs that the table is allowed 2 rows checking. Is any one can help this problem?


Answers

Sign In or Register to comment.