Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Haresh Shahani on Dec 23, 2008 11:12
open dhtmlx forum
enableMultiline with enableAutoHeight in grid

We have the following code:
        
addressGrid.enableMultiline(true);
addressGrid.enableAutoHeight(true,"500",false);
addressGrid.init();

This makes the height of the rows of the grid to shrink and be very small.
If I comment out the call to enableMultiline, the height of the rows in the grid becomes normal, but there is no multiline functinality, which is a problem.

If I try to set the height of the row explicitly using
addressGrid.setRowTextStyle(newId,"height:25px;");
the auto height feature doesn't work properly and I start seeing vertical scrollbars, when in fact I want an expanding grid.

Please help,
Thanks.

Answer posted by Support on Dec 24, 2008 02:08
You can add next line to the page

<style>
div.gridbox table tr td{
  height:25px;
}
</style>

It will change default height of row to 25 px


>>If I try to set the height of the row explicitly using 
>>addressGrid.setRowTextStyle(newId,"height:25px;");
Actually such use-case must not be a problem as well, just add grid.setSizes() after changing height of row, ot update global sizes of grid.