Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Balaji on Jan 12, 2009 13:00
open dhtmlx forum
Image in a DHTMLX Grid cell

hi,

I have a issue, I want to display image(s) in diff. cell for each row. Is there any working example to show and how to generate XML for image.

1. Image in a Grid cell
2. Hyperlink for Image (i know normal Hyperlink), need example for image hyperlink.

regards
Balaji.k
Answer posted by dhxSupport on Jan 13, 2009 02:42
To display images in cell you can use "img" type for cells:
<cell type="img">img.gif</cell>
The corresponding  cell value in XML should be a "^" delimited list of following values:
    1st - image src
    2nd - image alt text (optional)
    3rd - link (optional)
    4rd - target (optional, default is _self)

some.gif
some.gif^alte text
some.gif^alt text^http://dhtmlx.com^_blank
some.gif^alt text^javascript:doSomething()^_self

Also you can use any hmtl inside CDATA:
<cell type="ro"><![CDATA[<img src="img/img0.gif" />]]></cell>