Can I adjust the Column Size on runtime and save the sizes.

I need resize 5 columns on runtime, and save the new size of these columns.

For example, I have a grid with 5 columns, when i resize the columns with the mouse, I need save these new size columns. And load the same grid, but show this Grid with the new sixes.

Is possible save to XML the new sizes?

:ugeek: Thanks

Try to use cookies operations dhtmlx.com/docs/products/dht … _save.html

If I use the cookies, only does works in the side client.

I need load a xml into dhtmlxgrid and resize the columns on runtime. Is possible have a button and save the new size columns into the same XML file. :question:

The reason is because, I built the grid on runtime and my columns are sometimes large or small and I want resize manually this grid and save the new sizes. After of this, I allow the access to the grid with the columns size correct. :question:

Is possible to do this? :exclamation:

Can you help me?

Unfortunately such feature is not available.

You may try to use adjustColumnSize() method. It allow you automatically adjust column size to make all content visible:
docs.dhtmlx.com/doku.php?id=dhtm … columnsize

You may also try to serialize your grid.

dhtmlx.com/docs/products/dht … alize.html

in setSerializationLevel() method the third parameter allows yoo to serialize the config of a grid. Just set it to “true” and by serialization you you will save all new settings of a grid.