Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by andreea on Aug 14, 2008 04:32
open dhtmlx forum
the grid is showing a white space at bottom as if it needs to be resized

this is how i build the xml for the grid:
fwrite($fp,"<cell>".$status."</cell>\n");
fwrite($fp,"<cell>".$result['Date']."</cell>\n");
fwrite($fp,"     <cell>".$routeFromId."</cell>\n");
fwrite($fp,"     <cell>".$result['StopFromId']."</cell>\n");
fwrite($fp,"     <cell>".$result['TimeStopFrom']."</cell>\n");
fwrite($fp,"     <cell>".$result['StopToId']."</cell>\n");


where $status is one of the following variables
$check="<![CDATA[<a title='fade=[on] cssbody=[listtooltip] header=[] body=[".LBL_CHECK."]' href='#'><IMG SRC='".BASEURL."fw_images/images/check.jpg' ALT='check' BORDER='0'></a>]]>";

$alert_overcapacity="<![CDATA[<a title='fade=[on] cssbody=[listtooltip] header=[] body=[".LBL_ALERT_OVERCAPACITY."]' href='#'><IMG SRC='".BASEURL."fw_images/images/alert_overcapacity.jpg' ALT='alert_overcapacity' BORDER='0'></a>]]>";

$alert_no_seat="<![CDATA[<a title='fade=[on] cssbody=[listtooltip] header=[] body=[".LBL_ALERT."]' href='#'><IMG SRC='".BASEURL."fw_images/images/alert.jpg' ALT='alert' BORDER='0'></a>]]>";

if i put '***' instead of $status the grid is displayed without the white space, therefore it must be something wrong with $status.

the xml looks like this :

- <rows>
- <row id="178">
<cell>12-08-2008</cell>
<cell id="27">27</cell>
<cell id="34">34</cell>
<cell id="26">26</cell>
<cell id="41">41</cell>
<cell>1</cell>
<cell>0</cell>
<cell>o</cell>
</row>
</rows>

As you can seethe status cell is not in it. I have tried to put setsizes() after i loas the xml , but it was no good


Answer posted by Support on Aug 14, 2008 05:01
You are using images inside cells - if such images has height greater than expected height of row ( 20px by default ) - it will corrupt autoheight logic ( the image size may be detected only after images loaded, so component can't detect moment, when data in grid takes final size )