Announcement

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

    Customizing the Condition List values in FilterBuilder

    Hi,
    I would like to have just these 4 values "Contains", "Equals", "Starts With" and "Ends With" in the Conditions list of FilterBuilder. I have gone trough all the posts and am not able to find a solution. Is it possible to change the default values in the Conditions list. Can anybody pls provide sample code / how to achieve the same. Thanks for any help
    I am using the latest build SmartGWT 1.1r606

    #2
    Hi Ada,

    There are SmartClient APIs for this (eg dataSourceField.validOperators) which don't appear in SmartGWT yet. Stay tuned for an update, or use JSNI for now.

    Comment


      #3
      HI ADA,

      Please set the setValidOperators in the data source file.

      Example:
      setValidOperators(OperatorId.ICONTAINS,OperatorId.EQUALS,OperatorId.ISTARTS_WITH,OperatorId.IENDS_WITH);

      Comment

      Working...
      X