DataFilter Operator ComboBox

2 posts, 0 answers
  1. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    We are using the DataFilter in unbound mode to allow users to create filters that will be used to create queries that are sent to the database.  Unfortunately we require operators that are not included with Telerik (IsAnyOf, IsAllOf, IsNotAnyOf, IsNoneOf).

    I need one of these options:
    1. before the filter editor is displayed, get a reference to the operator combo.  From there, I should be able to clear the operators and add a list of my own.
    2. before the filter editor is displayed, get a reference to the operator combo make it not visible, and implement a different drop down in the DataTemplate.

    I have subscribed to every event I can think of, and I either can't get a reference to the combo box, or I do, but clearing the items and/or making it invisible doesn't work. It seems that I am setting these properties too soon and they are then overridden by your base code.  When I get the reference to the operator combo after the base code has run, so that I my changes are persisted.


  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 11 Jul 2012 Link to this post

    Hello,

    You could subscribe for the FilterOperatorsLoading event where you could control the operators loaded based on the type of the e.ItemPropertyDefinition.

    Here is a table with the supported operators for every type:

    String
    IsEqualTo
    IsNotEqualTo
    StartsWith
    EndsWith
    Contains
    DoesNotContain
    IsContainedIn
    IsNotContainedIn

    DateTime and all Numeric Types
    IsEqualTo
    IsNotEqualTo
    IsLessThan
    IsLessThanOrEqualTo
    IsGreaterThan
    IsGreaterThanOrEqualTo

    Boolean

    IsEqualTo
    IsNotEqualTo

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top