ColReorder Events?

ColReorder Events?

jLinuxjLinux Posts: 981Questions: 73Answers: 75

I was looking at the ColReorder extension: http://datatables.net/extensions/colreorder/examples/initialisation/simple.html

I was wondering, is there any way to add some events or function hooks into it? so once a column is re-ordered, it will execute a function with some data?

I looked at the examples, and unless I missed something, I didnt see any way to do it. The ServerSide processing just orders them based on an ajax result, not make an ajax query based on an event

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,700Questions: 1Answers: 10,501 Site admin
    Answer ✓

    There is a column-reorder event that you can listen for. It will tell you some information about the reordered columns as well.

    The full list of events in DataTables and its extensions are available here.

    Allan

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    I figured there was something, just couldnt find it. Thanks!

This discussion has been closed.