Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Mike B on Jun 11, 2008 13:35
open dhtmlx forum
html in grid

Hello. Is it possible to put image tags or other html in a grid cell?

Thanks
Answer posted by Support on Jun 12, 2008 01:44
The grid cell treat its content as HTML , so you can use any HTML tags as data ( except of special column types, such as ch,ra,edtxt,rotxt,txttxt )
To store data correctly in XML you need escape it, or use CDATA
    <cell>&lt;img src='some'&gt;</cell>
or
    <cell><![CDATA[ <img src='some'>  ]]></cell>