Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by GK on Oct 11, 2007 17:36
open dhtmlx forum
DHTMLXGrid

Hi, I have the grid inside a table. The columns are resizeable. If i drag the column beyond the width of the table i want horizontal scroll bars to appear. Please tell me how to do it.
Answer posted on Oct 12, 2007 18:24
Grid itself has not ability to track resize of other DOM element ( it can react on window resize but not on simple DOM elements)
You can has some code which will ajust grid to necessary size

function call_after_column_resize(){
    grid.entBox.style.width=new_column_width;
    grid.setSizes();
}