Toggle column by rowId instead of index

Toggle column by rowId instead of index

CryptoStatCryptoStat 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

Answers

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    I solved that by giving each column a unique class name and used that for sorting instead of position index.

  • allanallan Posts: 63,457Questions: 1Answers: 10,466 Site admin

    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

This discussion has been closed.