How can I dinamically change the (leaf.gif) icon depending on which action i trigger. I have three buttons that add rows but I want that each button shows a different icon. Now it only shows leaf.gif. How can I make this?
Thanks in advance.
How can I dinamically change the (leaf.gif) icon depending on which action i trigger. I have three buttons that add rows but I want that each button shows a different icon. Now it only shows leaf.gif. How can I make this?
Thanks in advance.
You may try to use setItemImage() method to change the image for a cell at any time:
http://docs.dhtmlx.com/doku.php?id=dhtmlxtreegrid:api_method_dhtmlxgridobject_setitemimage