I used to load the grid by XML.
In XML we just hard code the width of column.
Can grid adjust grid column width automatically according to the width of grid container.
Consider I have a grid container with 500 width.
So even if grid has a single column ,that column width should be 500.
or if grid has 10 columns , each column should get width 50.
How can we do this?
Just define column width as ““
grid.setInitWidths(”,,”); //or set width="*" in case of init from xml
grid will divide all free space between such columns , so it will work exactly as necessary in your case.