The grid requires that the initial column width be specified


The grid requires that the initial column width be specified. But in my
case, the column width may not be known at the beginning, since the column
values I add for each row may be of different length.


So, the grid column should automatically resize to the correct size upon
initial rendering of the grid. Is

that possible?


There
are two auto size features in grid:

a)
Flexible column


You
can specify “*” as column width - as result column auto adjust to
cover all available place.


 
samples/pro_auto_width.html


 


b)
Columns sized by content


Grid
supports next command:


                mygrid.adjustColumnSize(column_index);


It
will force column resizing, to size of biggest content in column’s cells (the
functionality works in all browsers, but can work incorrectly in FF for complex
cell content).


Function
needs to be called AFTER data loaded in grid.


 samples/pro_column_size.html