Categories | Question details Back To List | ||
Image/Icon not refreshing after update 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")); }); Answer posted by dhxSupport on Aug 13, 2009 07:32 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) Answer posted by ray on Aug 13, 2009 08:35 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. Answer posted by Support on Aug 14, 2009 01:49 getAttribute command returns exactly the same value, as it was defined in XML, without any modifications. Answer posted by ray on Aug 14, 2009 05:52 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? Answer posted by Support on Aug 14, 2009 06:07 Please try to add the next command, with the path to the image folder grid.setIconPath(path) |