make row unclickable
make row unclickable
Ghost108
Posts: 19Questions: 7Answers: 0
in DataTables
hi all!
I would like to make rows unclickable, where the column 3 has got an value.
Is this possible ?
Answers
We can probably figure something out. Please provide more information of what you have and what click event you want to control. A simple test case with an example of your data and the click events will be the best option.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
For example:
http://live.datatables.net/gipaxebo/1/edit
the row should be unclickable if the row has an empty value in the position column
One option is to use
createdRow
and add a class to the non clickable rows. For example:http://live.datatables.net/cudomoga/1/edit
Notice I changed the format of how the event listener is created to use Delegated events. Otherwise the events might not work on other pages. See this example.
Kevin
that's it ! Thank you