Change value of hidden column?
Change value of hidden column?
markstahler
Posts: 15Questions: 0Answers: 0
I need to be able to change the value of a hidden column. Weird requirement? I am using it as a flag for sorting. If in a row is in a certain state, I use a hidden column to flag it and resort putting the flagged items at the bottom. What I need to be able to do is update the value in the hidden column but I am having trouble figuring out how. fnGetData() seems only to be able to retrieve data, it does not update the actual column data. I have been using fnGetNodes() extensively in this application but unfortunately when a column is hidden it doesnt show up in the list. This is the last obstacle to complete before my table is complete! Thanks for the fantastic plugin, Allan! I will definitely be donating shortly.
This discussion has been closed.
Replies
Allan
To use the internal data strucutres, the best way of getting a grounding with this is to have a look at the fnUpdate source and see what requirements DataTables needs (update the node and the aData array for example).
Allan
Today I spent a good chunk of time playing with this. I noticed a fifth parameter, bAction that appears to rebuild the internal data structures. I set this parameter to false in the portion of my app that was very slow and it seems to have fixed the issue. Is this an undocumented feature?
Regards,
Allan