dt3 column reorder issue

dt3 column reorder issue

chboccachbocca Posts: 120Questions: 16Answers: 1
edited 4:32PM 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: 120Questions: 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: 120Questions: 16Answers: 1
    edited 5:14PM

    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

Sign In or Register to comment.