I have a grid with the majority of columns being set to * as I don’t want to pre-define the column width.
mygrid.setInitWidths(“100,,100,,50,,,,,,”);
For the columns that are a fixed width, I am able to resize the columns manually. For the columns that are “*” I can’t resize them manually.
after the mygrid.init();
I tried getting the columns width and re-setting it by doing (for each column):
var width = mygrid.getColWidth(colIndex);
mygrid.setColWidth(colIndex,width);
But this did not help.
any suggestions?
Also, is there a way for the columns to size automatically based on the data? Even when I set the width to “*”, it just takes the size of the grid container and divides it by the number of columns, and they all become the same size. It does not evaluate the data when determining how wide a column should be. Are there any settings that maybe I’m not aware of that can help with this?
Thanks in advance!