Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Luc on May 29, 2009 02:25
open dhtmlx forum
Icons in a cell of a grid

Hi,
Is is possible to insert an icon in some cells of a grid like in the header of the grid ?
In the future, I would like to link those icons to somes pages in my application.
Thanks
Answer posted by dhxSupport on May 29, 2009 02:33
You can use "img" eXcell type. Threat value as image source, renders as image (IMG tag)
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