Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jim Soho on Jun 07, 2009 05:47
open dhtmlx forum
minimum width for * column in grid

Hi,

When resizing a column it always appears to have a minimum width of 10px. Except for the column that was set with the value '*' in the call to grid.setInitWidths. It would be nice if that too had a minimum width of 10px.



Thanks,
Jim
Answer posted by Support on Jun 08, 2009 01:49
You can use 
         grid.setColumnMinWidth
to set desired min. width for any column.
Answer posted by Jim Soho on Jun 08, 2009 03:40
I know. I just think it'd be nice if the default for the * column was the same as the default for all the other columns.
Answer posted by Support on Jun 08, 2009 05:19
The columns defined as "*" purposed to take all free space. Main reason of such operation - prevent horizontal scroll bar appearance, so assigning any size limitation to the will break the original logic. 
During column resize - you can't actually resize column with size defined as "*", you can resize other column and size of "*"-sized column will be changed indirectly ( and manual resize limits not applied to such indirect resize )