How to retain the state of column width after resizing it in Datatable.

How to retain the state of column width after resizing it in Datatable.

SorathiyaKinjalSorathiyaKinjal Posts: 2Questions: 1Answers: 0

Lets say I am on one page with datatable and resizing the column.Now i am moving to another page and come back to previous page at that time I need to retain the column resize.

Answers

  • xtech_devxtech_dev Posts: 25Questions: 11Answers: 0

    What do you do to resize the column (what method you use)?

    It Man

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @SorathiyaKinjal ,

    stateSave can be used to retain table state information. By default, this won't include column spacing, but you can add to the default set with stateSaveParams. stateLoadParams could then be used to read that changed value and modify the table again,

    Hope that helps,

    Cheers,

    Colin

  • SorathiyaKinjalSorathiyaKinjal Posts: 2Questions: 1Answers: 0

    @xtech_dev

    Using the colresizable 1.6.0 version for resizing the columns manually.

This discussion has been closed.