keep position after datatable moves the column and refreshes the page

Hello, can you tell me how to keep the column position after datatable moves the column and refreshes the page

Tagged:

Comments

  • Hello @JACK_CHYMBCC,

    It is possible get the current state of the datatable (using the getState() method) component and save it across multiple sessions via the local storage. Please take a look at the following example: https://snippet.webix.com/uvtavel8. Try moving the columns around and refreshing the page - you will see that the datatable structure is being saved.

    To ensure the continuous structure saving, I am using the onStructureUpdate event handler, meaning that the datatable will be saved each time its structure is altered in any way, shape or form. The exact moment you'd like to restore the saved state is entirely up to you - in this example I am simply restoring the state upon the initial load.

  • @Dzmitry,Thank you very much.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!