DataGrid2 Issue: Column Resize on Refresh of the page

0
In my DataGrid2  I have 10+ columns and selected resize of all columns, but once I resized my column and refreshed the page the column size returned to its original position. How do we fix it? even if I refresh the page.
asked
1 answers
1

Hi Shubhransh,

 

DataGrid2 doesn't persist column resizing out of the box. When you refresh the page, it reinitializes with the default column widths. To have resized columns retained after a refresh, you’ll need to implement a custom persistence mechanism—for example, by storing the column widths (using local storage or your own data source) when the user resizes them, and then applying those stored values when the grid is initialized.

In short, the default behavior is to reset to the original widths, so a custom solution is required if you need persistent column resizing.

 

1. Enable Column Resizing in DataGrid2

2. Add an OnChange Action for Column Resize Event

3. JavaScript Action or Nano flow to Store Column Widths

 

Hope this helps.

answered