Announcement

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

    MultiComboBoxItem dynamic criteria

    Using:
    smartgwtpower-3.1p, latest nightly
    FireFox 16.0.2

    Is it possible to somehow add dynamic criteria to a MultiComboBoxItem?
    Like it is for instance possible with the 'pickListFilterCriteriaFunction' in a SelectItem or a ComboBoxItem.

    Any other solution is also welcome!

    #2
    Using setComboBoxProperties() should allow you to provide a PickListFilterCriteriaFunction.

    Comment


      #3
      Thanks for the quick reply.

      The pickListFilterCriteriaFunction on the comboBoxProperties works for setting dynamic criteria, but the typed in filter criteria are not included anymore.
      Is it somehow possible to retrieve the typed in value or criteria from the MultiComboBoxItem, in order to re-add the typed in filter criteria to my custom pickListFilterCriteriaFunction?

      comboBoxProperties.getEnteredValue does not seem to work.

      Comment


        #4
        Make sure you're getting the FormItem instance from the FormItemFunctionContext, and not just referring to the ComboBoxItem instance you pass to setComboBoxProperties() - that wouldn't work.

        Comment

        Working...
        X