Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Muhammad Jafer on Jul 03, 2009 19:55
open dhtmlx forum
Rezing

Hi
I have two important question.

1. How can i be able to set size of image in a grid like we can do it in a img tag example following
<img width="20px" height="50px" src="">
I am loading headers from XML.
2.How can i automatically adjust div which is holding grid according to the height of grid.



I would be great full for your help.
Answer posted by dhxSupport on Jul 06, 2009 00:53
1. If you are using "img" eXcell type, row height will be automatically adjusted according to the image size. But you can use any html inside grid's cell:
<cell><![CDATA[<img width="20px" height="50px" src="">]]></cell>
2. You can use auto height mode: 
 mygrid.enableAutoHeight(true)
Grid's container will be automatically adjusted according to the number of rows in grid.