Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Apr 10, 2008 06:29
open dhtmlx forum
Reg auto resizing of the grid

Hi,
I'm facing a problem
On splitting the grid at the column 1 the grid is behaving as two different grids. If i set the width as "auto" and then align it to center then only the first column gets displayed aligned in the center of the page. Also the column is not getting resized automatically. I need some suggestions to move ahead. The code that is made use of is mentioned below.


<table width="auto" align="center">
    <tr>
        <td>
            <div id="gridbox" width="auto" height="auto" style="background-color:white;overflow:hidden;align:center"></div>
        </td>
    </tr>
</table>

Answer posted by Support on Apr 10, 2008 07:47
The grid in split mode must be initialized inside container with fixed size, if you need to have auto height|width, you need to use
    grid.enableAutoHeight(true);
    grid.enableAutoWidth(true);
instead of " width='auto' height='auto' "