Toggle column by rowId instead of index
Toggle column by rowId instead of index
CryptoStat
Posts: 2Questions: 2Answers: 0
Hi, I am have just implemented state saving and column reordering, however I realized that since my toggle buttons for column viability are by index (i.e table.column(21).visible( false ); ) it will not work if I reordered the columns. Is there a way of referencing a rowID instead of a row index
This discussion has been closed.
Answers
I solved that by giving each column a unique class name and used that for sorting instead of position index.
That sounds like an issue I need to take a look at. Thanks for letting me know about it.
The row id or index isn't going to help here since it is saved by column index.
Allan