I have SmartGWT nightly smartgwt-2.3-2010-10-26.
I have an IPickTreeItem connected to a DataSource to fill the contentents.
And I need is setSubmenuDirection("left") to it.
But I don't know how to access to the Menu object to change this attribute.
I also tried to set direcctly the attribute to the IPickTreeItem but didn't affect at all.
What I really need is to change all the tree to be a left menu.
Thanks for your support.
Pau
I have an IPickTreeItem connected to a DataSource to fill the contentents.
Code:
IPickTreeItem zonesMenu = new IPickTreeItem(); zonesMenu.setDataSource(ZonesDS.getInstance()); zonesMenu.setShowTitle(false); zonesMenu.setCanSelectParentItems(true); zonesMenu.setDisplayField("name"); zonesMenu.setValueField("id"); zonesMenu.setLoadDataOnDemand(false); zonesMenu.setLocateItemBy("value"); zonesMenu.setFetchMissingValues(true); zonesMenu.setAlwaysFetchMissingValues(true); zonesMenu.setSubmenuDirection("left");
But I don't know how to access to the Menu object to change this attribute.
I also tried to set direcctly the attribute to the IPickTreeItem but didn't affect at all.
Code:
zonesMenu.setAttribute("submenuDirection", "left");
Thanks for your support.
Pau
Comment