I upgraded to the lastest version of DHTMLX and now when I update a cell in the treegrid, the icon is not displaying and shows an X.
Here is my code which worked prior to the upgrade.
aUserGrid._h2.forEachChild(0, function(el) {
var cell = aUserGrid.cells(el.id, data[1]);
cell.setImage(cell.getAttribute(“image”));
});
You code is correct. Please check if cell.getAttribute(“image”) actually returns path to the necessary image. If issue still occurs please send us example where we can reproduce it (you can send such example directly to the support@dhtmlx.com)
cell.getAttribute(“image”) returns the image name but not the entire path. Is it suppost to return the entire path? I am emailing support with the entire file.
getAttribute command returns exactly the same value, as it was defined in XML, without any modifications.
The xml file only generates the image name so the cell.getAttribute is grabing the image name. So why is it not displaying the image on update?
Please try to add the next command, with the path to the image folder
grid.setIconPath(path)