Announcement

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

    Customize the Operators on FilterBuilder

    Using the FilterBuilder widget, how do I customize the choices in the second dropdown menu for each column?

    I did not see any example of how to do this in the Showcase, and the documentation seems vague.

    Is this even possible?

    Thanks!

    #2
    http://forums.smartclient.com/showthread.php?t=11658&highlight=operators

    Comment


      #3
      That link mentions to use getDataSource on the FilterBuilder instance, then call getFieldOperators.

      However, the method getFieldOperators (or, presumably, setFieldOperators), does not exist in the javadoc. http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/data/DataSource.html

      Can you please clarify how I would set the operators for certain fields, when using a FilterBuilder?

      Thanks!

      Comment


        #4
        It can set globally or by field via DataSourceField.setValidOperators().

        Comment

        Working...
        X