Using Multiple Tables And Conditioning TDs

Using Multiple Tables And Conditioning TDs

xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
edited April 2012 in General
I'm using datatables table plugin and I'm using it globally across my site so that I can have all my tables use the same settings. What I'm wanting to do is have it set up to where it it comes across one of the th's that have a certain id then it takes off the sorting and adjust the size of the column but not sure how I can do that if the td has a certain id.

Replies

  • allanallan Posts: 63,810Questions: 1Answers: 10,516 Site admin
    You can't use IDs to match this(*) I'm afraid using only the built in DataTables code, but you can use classes through aoColumnDefs and aTargets: http://datatables.net/usage/columns .

    (*) Actually you can, but you would need to add code to do the matching of the ID to a aoColumnDefs object.

    Allan
  • xtremer360xtremer360 Posts: 84Questions: 2Answers: 0
    I'm wondering if anyone has ever done that before, because it'd be nice to be able to do this. Reason being I'm using the same datatables created code globally and on my tables say I have a id field as the one first column but might have it on the second column on a different table.
This discussion has been closed.