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.
There are no errors, the criteria just doesn't make it to the server.
Any help would be greatly appreciated.
Kind Regards
Jeni
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);
Any help would be greatly appreciated.
Kind Regards
Jeni
Comment