Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
235
Different filters on fields
posted

Is it possible to have different filters for each field?

E.g In a string field I only want to use the "Contains" filter and for an numeric field, I want to use "GreaterThan, LessThen and Equal".

  • 3520
    Verified Answer
    Offline posted

    Hello Markus,

    In order to have only certain items in the Filter Operators’ list I suggest using the FilterOperatorDropDownItems property off the FieldSettings object and set it to the comma separated list of operator values you need. The code should look similar to the following snippet:

      <igDP:FieldSettings

                                    FilterOperatorDefaultValue="Equals"

                                    FilterOperatorDropDownItems="GreaterThan, LessThan, Equals"/>

     

    I implemented the suggested approach in the sample application I am attaching for you reference. Please let me know if I can provide any further assistance.

    FilteringDefaultOperator.zip