Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pyt on Aug 11, 2008 07:11
open dhtmlx forum
Inserting an image and a text in the same cell from js

Hi,
I'm having problems with inserting an image and text in the same cell,in case of init from js. I need both of them to be displayed at the same time. Can u please suggest me the Syntax for inserting an image and a text in the same cell?


Thanks in Advance
Answer posted by Support on Aug 11, 2008 09:10
Just use plain HTML as cell value 
In case of addRow
    grid.addRow(grid.uid(),["some","some <img src='some.gif'>","some"])
In case of setValue
    grid.cells(1,1).setValue("some <img src='some.gif'> ");