Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    IPickTreeItem setSubmenuDirection

    I have SmartGWT nightly smartgwt-2.3-2010-10-26.

    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");
    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.
    Code:
    zonesMenu.setAttribute("submenuDirection", "left");
    What I really need is to change all the tree to be a left menu.

    Thanks for your support.

    Pau

    #2
    It could be nice to add it to the wishlist.

    Comment

    Working...
    X