How to re-draw the table after columns have been reordered?

How to re-draw the table after columns have been reordered?

Marko76Marko76 Posts: 16Questions: 0Answers: 0
edited January 2014 in Plug-ins
Hi folks,

I am using fixedColumns along with colReorder in order to lock the 1st column and also be able to sort/drag columns around. One thing I noticed is that when I drag the 1st - locked column the underlying table does reorder the columns bu the overlay locked column table remains in place. this makes it look like I have 2 times the same column until I refresh the page at which point the table is redrawn and works fine. Here is the video:

http://screencast.com/t/iGbVJq4rvG

My question is how can I force the redrawing of the table when columns are reordered? Is there an event I can listen to?

Replies

  • Marko76Marko76 Posts: 16Questions: 0Answers: 0
    Well i know now that I can use:

    [code]oColReorder: {
    iFixedColumns: 1
    }[/code]

    to lock X many columns from the left to where they cannot be reorder/dragged. This fixes my problem.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Interesting - the fixed column shouldn't be movable. Looks like I need to update the integration between those two plug-ins. Thanks for letting me know about it and good to hear you have a workaround.

    Allan
This discussion has been closed.