Table Tools fnSelectAll questions

Table Tools fnSelectAll questions

naomiaronaomiaro Posts: 8Questions: 0Answers: 0
edited February 2012 in General
hello, I was just working with this TableTools plugin, and I have some table rows within my table that I do not want the plugin to select (to avoid me having to filter them out of the returned fnGetSelected values)

single row selection is no problem with this because I can use the function fnPreRowSelect to notice rows by class etc that I don't want a user to select and cancel the event. I'm using multi select with the tools, and I'd still like the ability to have a "select all" which will select all rows from the table that are available to the user. So it would be nice to either have fnSelectAll take a selector to match trs against or some how duplicate the functionality of fnPreRowSelect for the select all.

thanks
Naomi

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    HI Naomi,

    Thanks for explaining what it is that you are trying to do. fnSelectAll currently doesn't provide the fnPreRowSelect option (which I think is a bug, and I've taken a note to look at and address that). Until then, what you could do is simply loop one fnSelect passing in each node (this is effectively what fnSelectAll will do anyway), that way your function will be allowed to operate as required.

    I think that's another thing that should be done - fnSelect should allow an array of nodes to be passed in, and have them selected... Also added to the do-to list!

    Allan
  • naomiaronaomiaro Posts: 8Questions: 0Answers: 0
    Great thanks!
This discussion has been closed.