As I dont't have a fnPreRowSelect in Select ext anymore, I'd like to know how to prevent select/deselect events if I click on certain td (namely td.details-control) in ajax-based datatable?
This question has an accepted answers - jump to answer
Currently you would listen for the select event and check to see if the selected row shouldn't have been selected. If that is the case it would then immediately be deselected (row().deselect()).
There is no direct analogue of fnPreRowSelect in the Select extension.
It's a pity you have eliminated such useful callback as fnPreRowSelect !!!
All master-detail datatables are based on select/deselect mechanism.
I don't want to deselect a row (and once again to refresh detail-datatable) I want to prevent a selection ....
Is there any hope of getting fnPreRowSelect back?
I'm probably going to add a preSelect event which is cancellable (i.e. return false to prevent the selection). Not entirely sure when I'll get a chance to make that change, but hopefully not too far away.
Great! ... and thanks again Allan!
It looks like you're new here. If you want to get involved, click one of these buttons!
DataTables designed and created by SpryMedia Ltd.
SpryMedia Ltd is registered in Scotland, company no. SC456502.