Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by partha thakura on Dec 06, 2007 04:30
open dhtmlx forum
to insert an image

how to insert different images in different rows of a dhtmlx grid?
plz help . it's urgent
Answer posted by Support on Dec 06, 2007 06:20
Do you mean dhtlmxgrid of dthtmlxtreegrid
In case of grid , the only way to insert image in cell - provide it as cell value, so to have different images, just provide different values.
In case of treeGrid - it can be defined as
    <row id="1.1.1">
            <cell image="images/book.gif">Automatic </cell>

or set by js command after data loading
    grid.cells(i,j).setImage(url);