PDA

View Full Version : How to remove folder icon in tree grid



pk.hafeez
3 Jan 2012, 11:57 PM
How to remove folder icon in tree grid. All the hierarchy should display only names.

Ersmarker
4 Jan 2012, 12:17 AM
You can use
tree.getStyle().setNodeCloseIcon(AbstractImagePrototype)
tree.getStyle().setNodeOpenIcon(AbstractImagePrototype)
to set the folder icon. Null will remvoe the icon

pk.hafeez
4 Jan 2012, 3:41 AM
Thanks ! That works !

admin_dpop
23 Aug 2013, 3:51 AM
null is not working for me. But other image works.

acichocki
4 Sep 2013, 10:48 AM
I tried setting the following (in a TreeGrid):


tree.getStyle().setNodeCloseIcon(null);
tree.getStyle().setNodeOpenIcon(null);
tree.getStyle().setLeafIcon(null);


but the default folder icon is still there. I am using GXT 3.0.6 -- any hint?

mstguy01
7 Nov 2013, 6:05 AM
I encountered the same thing on GXT 3.0.1. I set the node open/close icons to a 1x1 image (clear.gif that comes with GXT). It is essentially hidden now.