Show/Hide Details without selecting row
Show/Hide Details without selecting row
ChrisG
Posts: 29Questions: 0Answers: 0
I have both the Show/Hide details button and the user selectable rows features, and I want to prevent the row from being selected if the user clicks on the show/hide details button only. So basically how do I prevent row selecting if the user clicks on the first column in the table?
I feel like this should be really easy to do but I just don't know how to write it out. I've gotten as far as figuring that I probably need to modify the actual selecting function in TableTools.js
Let me know if I'm way off base.
I feel like this should be really easy to do but I just don't know how to write it out. I've gotten as far as figuring that I probably need to modify the actual selecting function in TableTools.js
Let me know if I'm way off base.
This discussion has been closed.
Replies
Allan
Since there is space around the Show/Hide image that the user might accidentally click, I want to try to avoid that mistake from happening if possible.
Thanks for the help!
The other option is to add your own event handler and use the fnSelect API method to select rows using your own logic.
Allan
Is there any documentation as to what information these contain? How would I determine what column is being clicked from this information?
This works great but I'm concerned if I ever need to update my TableTools to a newer version... I commented my code so I can always transfer it over but it would still be good to have a proper fix for this.