ColReorder with FixedColumns

ColReorder with FixedColumns

matvalsematvalse Posts: 2Questions: 0Answers: 0
edited April 2013 in General
Hello everybody, I've developed a DataTable with ColReorder and FixedColumns, but I've found a little bug.

If I fix the first column i can't move the second column to the first, only move the fist to the second.

It happen also in this example:
http://datatables.net/release-datatables/extras/ColReorder/fixedcolumns.html

Is there any ways to fix this problem?
Thanks
Matteo

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Currently no - FixedColumns cannot be made unfixed, and other columns fixed after initialisation.

    Allan
  • matvalsematvalse Posts: 2Questions: 0Answers: 0
    Ok, Thanks Allan!
  • blinkjonblinkjon Posts: 2Questions: 0Answers: 0
    I think that what Matteo was trying to say was that if you have a table having 4 columns (named A,B,C,D), for example, and the first being a fixed column, the following happens:

    * You can move the second column to the right (resulting in A,C,B,D or A,C,D,B) -- that's ok.
    * But you cannot move any column between the first and the second ones. If I wanted to move D between A and B, I should be able to, in order to end up with A,D,B,C. The only way to move B out of its original place is by moving it to the right.

    -Jon
  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Ah - I see. Thanks for the explanation Jon!

    This has actually already been fixed. If you use the ColReorder nightly from the downloads page, it should already be working.

    Regards,
    Allan
This discussion has been closed.