Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by kumar on Dec 10, 2007 00:19
open dhtmlx forum
problem in inserting image

i am getting the problem in inserting the image i tried these grid.cells(i,j).setImage(url); but it is telling that the object of these type is not supporting
Answer posted by Support on Dec 10, 2007 01:38
The setImage works for "img" or "tree" excell types only.
If problem occurs for one of mentioned type - please be sure that cells(i,j) point to existing row and cell.
For any other cell type, if you want to set an image you can use next approach
    grid.cells(i,j).setValue("<img src='some.gif'>");
Answer posted by Support on Dec 10, 2007 01:46
Also, there is an issue in current build ( 1.4 71022 ) which may prevent setImage works correctly in some circumstances.
If problem occurs for "tree" column type - please contact directly at support@dhtmlx.com and provide your ref. number - we will send you updated js file.