Categories | Question details Back To List | ||
image in cell Hi, i'm trying to attach an image in a cell in grid. It works great with this codes in xml: "<cell type="ed"><![CDATA[<img src= '/myImage'>value]]></cell>" Now when i want to edit the value, it shows the path of image. Can i change my codes so, that image is readonly and the value is editable? Like cell type dyn. And how can i change only the value of the cell like: var value = mygrid.cells(rowId,cellInd).getValue. Thanks in advance! pyt Answer posted by dhxSupport on Mar 13, 2009 04:29 >>Now when i want to edit the value, it shows the path of image. Can i change my codes so, that image is readonly and the value is editable? Like cell type dyn. Unfortunately there is no appropriate cell's type. You can try to create custom cell's type http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_excell_creation.html#grid_cexc Or you can put image and value at the different columns but merge the into the header with #cspan command. You can also delete seperators between cell so 2 columns will look like one column. More about grid's appearance you can find here http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Creating_custom_skin.html#grid_cust_skin >>And how can i change only the value of the cell like: var value = mygrid.cells(rowId,cellInd).getValue mygrid.cells(rowId,cellInd).setValue("<img src= '/myImage'>value"); |