how to disable edit button and inline editing based on conditional value of a column?
how to disable edit button and inline editing based on conditional value of a column?
lancem
Posts: 1Questions: 0Answers: 0
http://live.datatables.net/xenexesi/2/edit
I'd like to disable inline editing and the Edit button based on the conditional values of a column. For example, I'd like to disable editing for any rows in which the Position is either "Director" or "Javascript Developer". Can someone tell me the javascript code to achieve that. Thank you.
Replies
Use
row().data()
to get the data for the row in question: http://live.datatables.net/xenexesi/3/edit . I've only checked against Director there, but I'm sure you can see how the logic could be extended.Allan