DHTMLX Docs & Samples Explorer

setImage(img)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxtreegrid.js

sets an image for the cell

  • img - the relative path to the image that you want to set for the cell
mygrid.cells(2,0).setImage("../images/books.gif")