Hi,
I would like to know how is it possible to disable the TreeNode icons one by one. Some nodes needs to have an icon, while others not.
I can only call TreeNode.setIcon() to a node, which replaces the folder or node icon. However I am unable to call for example a TreeNode.hideIcon(), which would hide the icon for that node and also remove the gap created for the icon.
Another issue I have, which is connected to this, is that it is impossible to disable the folder icon, or the node icon. I managed to do that only by setting the TreeGrid.setIconSize(1) and by using a small 1px x 1px transparent image for example. But this will set the icon size to 1 in the whole tree, while I would like to disable just the folder icons.
I am using the latest smartgwt 4.0. I just updated to it, previously I was using 3.1, and there were no problems with this. In that case I was setting the folderIcon and nodeIcon to null, which removed the default folder and node icons. Then I called a TreeNode.setIcon() for those cases, when I needed an icon, and that was working fine. Currently, without modifying my code, there are gaps for the icons, where I didn't set any icon. So I started to test the tree in an empty project, with the default skin and without any customization, but I noticed I am unable to do the same with 4.0.
Is there any workaround or solution exists?
Thanks!
I would like to know how is it possible to disable the TreeNode icons one by one. Some nodes needs to have an icon, while others not.
I can only call TreeNode.setIcon() to a node, which replaces the folder or node icon. However I am unable to call for example a TreeNode.hideIcon(), which would hide the icon for that node and also remove the gap created for the icon.
Another issue I have, which is connected to this, is that it is impossible to disable the folder icon, or the node icon. I managed to do that only by setting the TreeGrid.setIconSize(1) and by using a small 1px x 1px transparent image for example. But this will set the icon size to 1 in the whole tree, while I would like to disable just the folder icons.
I am using the latest smartgwt 4.0. I just updated to it, previously I was using 3.1, and there were no problems with this. In that case I was setting the folderIcon and nodeIcon to null, which removed the default folder and node icons. Then I called a TreeNode.setIcon() for those cases, when I needed an icon, and that was working fine. Currently, without modifying my code, there are gaps for the icons, where I didn't set any icon. So I started to test the tree in an empty project, with the default skin and without any customization, but I noticed I am unable to do the same with 4.0.
Is there any workaround or solution exists?
Thanks!
Comment