Announcement

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

    Restricting operators for filterBuilder

    Hi All,

    I am using smartGwt 2.2 version, and I would like to restrict operators for filterBuilder ( need to use only few operators like "equal to", "less than" ). How do I set these few options instead of the default exhaustive list in filterBuilder ?. I searched in references, manuals, examples but could not find relevant material. Pls help.

    Thanks in advance.

    Rgds,

    #2
    i am looking for the same solution..

    Comment


      #3
      In the dataSource you set the validOperators.
      Code:
          fields: [
                   {name:"myNumericField", title:"My Numeric Field", type:"integer",  validOperators:["equals","notEqual","greaterThan","lessThan","greaterOrEqual","lessOrEqual","between","betweenInclusive","isNull","notNull"]}
               ]
      http://www.smartclient.com/docs/7.0r...validOperators

      And more:
      http://www.smartclient.com/docs/7.0r...validOperators

      Operators:
      http://www.smartclient.com/docs/7.0r...ass..Operators

      Comment

      Working...
      X