Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alberto Cervantes on Jun 19, 2007 02:49
open dhtmlx forum
TreeGrid height & Width

How can I change the grid total height & width whe resizing the container element?

Thanks
Answer posted on Jun 19, 2007 14:22
To change size you can do the next
    1. change grid container size
    2. call setSizes to resize grid to container size

Code will be similar to next

    document.getElementById('grid_container').style.width=NEW_WIDTH+"px";
    mygrid.setSizes();

Answer posted by sematik (Support) on Dec 04, 2014 01:42

Having solved the problem mentioned above, you may also look through the possible related problems with javascript ajax form and export to excel using java.