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.
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();