Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stevo on Apr 01, 2008 02:34
open dhtmlx forum
Full width and height grid with not resizable columns

Hello

I am struggling to achieve the following effect

I have grid loaded from html table, and I would like it to
- fill parent container (div) in width (100%)
- auto adjust height to content (no content scrolling - never!)
- make columns auto adjust to content (and fill table in 100%). If content overflows cell, then just not display it.
- disable manual columns width adjustment

Please help
Answer posted by Support on Apr 01, 2008 08:05
>> - fill parent container (div) in width (100%)
You can use style="width:100%" on container of grid

>> - auto adjust height to content (no content scrolling - never!)
    grid.enableAutoHeight(true);

>> - make columns auto adjust to content
    grid.setSizes('100,100,100,*'); //column marked as * will take all possible size, it will automatically increase | decrease on resize to prevent horizontal scrolling

>> - disable manual columns width adjustment
    grid.enableResizing("false,false,false,false")