TreeGrid remove Icon

How can I remove icon from a TreeGrid node?
I tried this:

menuData = TreeNode[]; //I'm loading this elsewhere
		
		// Menu
		menuTree = new Tree();
		menuTree.setModelType(TreeModelType.PARENT);
		menuTree.setIdField("menuId");
		menuTree.setParentIdField("reportsTo");		
		menuTree.setRootValue(1);
		menuTree.setData(menuData);
		
		menuTreeGrid = new TreeGrid();
		menuTreeGrid.setWidth100();
		menuTreeGrid.setHeight100();
		menuTreeGrid.setBorder("0");
		menuTreeGrid.setBackgroundImage("");
		menuTreeGrid.setSelectionType(SelectionStyle.SINGLE);
		menuTreeGrid.setScrollbarSize(0);
		menuTreeGrid.setShowHeader(false);
		menuTreeGrid.setFields(new TreeGridField("menuName"));
		menuTreeGrid.setData(menuTree);
		menuTreeGrid.getData().openAll();
		menuTreeGrid.setIconSize(0);
		menuTreeGrid.setShowDropIcons(false);
		menuTreeGrid.setShowOpenIcons(false);
		menuTreeGrid.setIndentSize(0);

But the Icon still appears in firefox as shown on the image. I added 1px red border to show it. (http://img172.imageshack.us/img172/6990/smartgwttreegridproblem.jpg)

And another question: Can I remove the empty ‘td’ or what it is, where the icon should be?
thanks.

maybe you searching for TreeGrid.setNodeIcon()

great, with setNodeIcon(null); it disappeared. But is there any way how to remove that first empty cell? Or should I use something else when I want a menu like GWTs MenuBar/MenuItem?

setLeaveScrollbarGap(false) should remove “the empty cell”

I too am trying to get rid of the icon for the TreeGrid. setLeaveScrollbarGap(false) doesnt seem to remove the td associated with the icon. Also in internet explorer it displays as a missing picture. Is there anyway to remove the icon and its td completely from the TreeGrid?
I have attached screens of how it looks in firefox and internet explorer

Isomorphic,

Can you respond to this question??

Thanks.

setNodeIcon(null) plus setIconSize(1) will remove the icon and empty space.

sabre_chandan’s issue appear to be a missing media file, which could result from improper skin usage - see the QuickStart Guide for the correct method of switching skins. If that doesn’t solve your problem, please give us a way to reproduce it.