Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by richard white on Nov 23, 2008 10:01
open dhtmlx forum
grid resize columns

hi,

i have a grid in a layout cell with 3 columns. i have set the sizes as 200,*,200

this scenario doesnt resize the columns. is this a bug or is there a way i can get around it so that the users can resize the columns

thanks

richard
Answer posted by Support on Nov 24, 2008 01:59
With such init, you will not be able to resize central column - it will always take all available size. 
You can switch auto-size column to normal behavior by 

grid.load(url,function(){
    grid.setSizes()
    grid.initCellWidth[1]=grid.getColWidth(1);
});
Answer posted by Support on Nov 24, 2008 01:59
With such init, you will not be able to resize central column - it will always take all available size. 
You can switch auto-size column to normal behavior by 

grid.load(url,function(){
    grid.setSizes()
    grid.initCellWidth[1]=grid.getColWidth(1);
});
Answer posted by Support on Nov 24, 2008 01:59
With such init, you will not be able to resize central column - it will always take all available size. 
You can switch auto-size column to normal behavior by 

grid.load(url,function(){
    grid.setSizes()
    grid.initCellWidth[1]=grid.getColWidth(1);
});