Hello,
I am trying to find a way to include the default column widths in the listgrid viewstate. Take a look at the preferences example in the showcase.
http://www.smartclient.com/smartgwt/showcase/#grid_appearance_preferences
Save the viewstate
Do an autofit all columns on the listgrid
Restore the viewstate
Notice that the columns are still autofitted, and have not been restored to their default widths.
The width of a column is only saved in the viewstate if you have manually adjusted the width of that column. Otherwise it is null.
I want my saved viewstate to grab the default widths of the columns when the viewport is filled, not after the autofit.
I am trying to find a way to include the default column widths in the listgrid viewstate. Take a look at the preferences example in the showcase.
http://www.smartclient.com/smartgwt/showcase/#grid_appearance_preferences
Save the viewstate
Do an autofit all columns on the listgrid
Restore the viewstate
Notice that the columns are still autofitted, and have not been restored to their default widths.
The width of a column is only saved in the viewstate if you have manually adjusted the width of that column. Otherwise it is null.
I want my saved viewstate to grab the default widths of the columns when the viewport is filled, not after the autofit.
Comment