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
To display images in cell you can use “img” type for cells:
img.gif
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:
<![CDATA[]]>
Hi All
sorry to resurrect an old issue
but i have problem putting in image and text in cell using CDATA on Firefox 6 and chrome
here’s the code i use
"<![CDATA[MAX_TORQUE
<img src='images/VERIFY.jpg' height='80' width='80/>]]></cell><br>
"<br>
it works fine in lower version of firefox<br>
i cannot use cell type img since i need to have text next to the image therefor my only option is using CDATA</p>
<p>please advise<br>
thanks in advance</p>
hi,
Resources/images/dash.png^
this is the syntax in xml file to get the image on a dhtmlx grid…
gridObj.setColTypes(img) give it like this…
thanks,
raj
Hai rajasekhar1242
Yes i know that but if i use type=“img” , i cannot put a text next to the image
i’ve check the documentation the ^ is for adding tooltip, url and more item i forgot
what i want is a plain text next to the image in a single cell
my code above code can work in FF ver lower than 6
but not in ver 6 and chrome
thanks
Try to make something similar:
<cell><![CDATA[<img src="image.gif"/>text afetr the image]]></cell>