Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by TonyW on Apr 08, 2008 21:34
open dhtmlx forum
Grid width change after init

I am loading a grid from xml including configuration. By utilising clearAll I am re-using the object to load further xml with different configs resulting in width changes -- more columns etc. API allows management of height but width adjustment is not available, the original container width determines grid width.
Any solution please??
Thanks
TonyW.
Answer posted by Support on Apr 09, 2008 05:24
Actually you can use auto-width mode as well
    grid.enableAutoWidth(true);

In such mode grid will change container width to show all columns without scrolling.
In necessary you can change width manually by changing width or parent container.

    document.getElementById('gridbox').style.height="NNpx";
    grid.setSizes();