Announcement

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

    iPickTreeItem with OptionCriteria

    Hello,

    We are using the SC_SNAPSHOT-2011-09-14 build of SmartGWT and are trying to change a ComboBoxItem to a iPickTreeItem.

    This is all working well apart from one bit. On the ComboBox we have an OptionDataSource set as well as a OptionCriteria. Again this is fine. In the pickTree however the OptionCriteria is being ignored. The tree is displaying just as we would expect it too only all the records are being displayed rather than only the required ones.

    Is there another setting we should be using rather an setOptionCriteria? The code we are trying is shown below.

    Code:
    IPickTreeItem cbCategory = new IPickTreeItem("expCategory");
            cbCategory.setValueField("id");
            cbCategory.setOptionDataSource(CategoriesDataSource.getInstance());
            cbCategory.setOptionCriteria(new AdvancedCriteria("option", OperatorId.EQUALS, "OptionA"));
            cbCategory.setDisplayField("category");
            cbCategory.setCanSelectParentItems(true);
            cbCategory.setLoadDataOnDemand(false);
    There are no errors, the criteria just doesn't make it to the server.
    Any help would be greatly appreciated.

    Kind Regards
    Jeni

    #2
    Please try a fully patched 3.0p build (smartclient.com/builds) - this sounds like a problem fixed some time ago.

    Comment


      #3
      Hi Isomorphic,

      Have just tried that quickly and it is all looking good.

      Thank you very much for your quick response.

      Kind Regards
      Jeni

      Comment

      Working...
      X