Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 14, 2007 14:56
open dhtmlx forum
The grid requires that the initial column width be specified. But in my case, the column width may not be...

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?
Answer posted on Mar 14, 2007 14:57

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

Answer posted by Darya (Support) on Dec 03, 2014 01:31

Not much can be said in addition to the reply above, but you also can check perl upload progress bar and javascript tabbed and find out what we have probably missed in our explanation.