dt3 column reorder issue

dt3 column reorder issue

chboccachbocca Posts: 123Questions: 16Answers: 1
edited August 16 in ColReorder

Hi Allan.

When I initiate table without dom or layout, column reorder works fine with dt3.

When I initiate table specifying dom, column reorder works fine with dt3.

When I initiate table specifying layout, column reorder not working with dt3, creating the following error (numerous times) when attempting to move a column.

Error message: "Uncaught TypeError: Cannot read properties of null (reading 'length')"

Below are links to three test cases:

1) colReorder without dom or layout

2) colReorder with dom

3) colReorder with layout

Again, cases 1 & 2 succeed, but case 3 fails.

Please let me know if indeed code issue or user error.

Thank you!

c

Replies

  • chboccachbocca Posts: 123Questions: 16Answers: 1

    If it helps, when I suppress buttons in layout, column reorder works fine with dt3 ...

     layout: {
         topStart: null,
         //topEnd: 'buttons',
         bottomStart: 'info',
         bottomEnd: 'paging'
     },
    

    Here's 4th test case demonstrating success:

    4) colReorder with layout no buttons

    c

  • chboccachbocca Posts: 123Questions: 16Answers: 1
    edited August 16

    One last note, if I specify top instead of topEnd in layout, colReorder works fine in dt3 ...

    layout: {
        topStart: null,
        //topEnd: 'buttons',
        top: 'buttons',
        bottomStart: 'info',
        bottomEnd: 'paging'
    },
    

    Here's 5th test case demonstrating success:

    5) colReorder with layout top buttons

    So, seems like some conflict with colReorder and topEnd 'buttons' ... ?

    Enough fun for now.

    Thank you!

    c

  • allanallan Posts: 65,927Questions: 1Answers: 10,973 Site admin

    That error has been fixed by this commit. I'll tag up and release ColReorder with the change tomorrow (at least, that is the aim!).

    Allan

Sign In or Register to comment.