ColReorder:reorderCallback not called when ordered with fnOrder API
ColReorder:reorderCallback not called when ordered with fnOrder API
babablacksheep
Posts: 41Questions: 23Answers: 0
Hi,
I noticed that when we use fnOrder
API,reorderCallback
is not triggered. I think it should trigger reorderCallback
when ordering is done with API as well.
table.colReorder.fnOrder([0, 1, 3, 4, 5, 2, 6, 7]);
// does not trigger reorderCallback
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I'm having the exact same issue. I can confirm that fnOrder does not trigger the reorderCallback. I'm giving users the option to change column order through drag drop as well as using a dialog. The reorderCallback should be called in both instances.
@c0okiemonster : For the moment u can manually trigger reorderCallback i guess
@babablacksheep : If you add a call to the namespace callbacks from the fnOrder function, it will call the fnReorderCallback function just as it does in the mouseup function
Completely agree - thanks for letting me know about this (and sorry for missing it originally).
Fix committed and the nightly is currently rebuilding with the change. It will be included in the next release.
Regards,
Allan