Categories | Question details Back To List | ||
setImage to switch picture After onbuttonclick, I want to switch an image in a gridcell to another image. mygrid.cells(1,1).setImage(url) does not seem to work. I get an errormessage saying that setImage is not a function. Am I doing something wrong or is there another way of dynamicalling swithing images in a grid without reloading the complete page from the server? Answer posted by Support on Dec 10, 2007 01:39 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. |