Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Nov 22, 2008 10:48
open dhtmlx forum
asterix on grid size in layout

hi

i am using an asterix (*) as a grid column which is inside a layout - so that column takes up all available space on the grid

the grid has 3 columns with widths = (200,200,*)

when a user shrinks the layout to 400 width or below then the 3rd column disappears.

is there a way to set a minimum amount with the asterix, for example if it went below 500 then the widths would stay at 200,200,100 and the 3rd column would expand but not shrink below 100

thanks
Answer posted by Support on Nov 24, 2008 02:03
You can use setColumnMinWidth to set min-width value for any column ( it will work for auto-size columns as well ) 

grid.setColumnMinWidth(100,2);
Answer posted on Nov 24, 2008 03:06
ok thanks