Is there a way to reorder columns runtime?
Is there a way to reorder columns runtime?

I'm looking for the ColReorder functionality through the API (means controlled by me in javascript). Currently the only way to do it is by re-initializing the entire datatables object, which works ok, but requires extra presentation logic and looks not so great in the user's perspective. I'm able to show/hide columns dynamically, but reordering seems impossible without re-initialization. Any ideas?
This discussion has been closed.
Answers
ColReorder has a
fnOrder()
API method which allows programmatic reordering. Is that what you are looking for?Allan