How to enable "Contains" logical operator when filter custom property?

6 posts, 1 answers
  1. King Chan
    King Chan avatar
    30 posts
    Member since:
    Feb 2010

    Posted 26 Jun 2012 Link to this post

    Hello Telerik Staff,

    I am filtering a custom property whichs contains multiple value, by following this blog I could successfully poplulate custom distinct values and filter by the distinct vlaues, as well as enable the <, <=, >, >= operator for comparsion.
    But still, the "Contains", "Begin with" etc logical operators are missing and I would like to implement it into the default filter editor control from Telerik.
    Is it possible? If so, how?

    Thanks in advance,
    King
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 26 Jun 2012 Link to this post

    Hi,

    Maybe this blog post can give you a head start.

    Greetings,
    Ross
    the Telerik team

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

  3. King Chan
    King Chan avatar
    30 posts
    Member since:
    Feb 2010

    Posted 26 Jun 2012 Link to this post

    But that would require to implement a Custom Filter Control.
    Our design is to have all column using default Telerik Filter Control, so we don't want to implement single column's Filter Control UI differently.
    So other than implement a Custom Filter Control, is it possible for us to implement the filter logic and enable it on the default Telerik Filter Control?
  4. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 26 Jun 2012 Link to this post

    Hello,

    I am afraid that you would have to implement a custom filter control to achieve this custom functionality.

    Regards,
    Ross
    the Telerik team

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

  5. King Chan
    King Chan avatar
    30 posts
    Member since:
    Feb 2010

    Posted 26 Jun 2012 Link to this post

    Ok, thanks.
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 26 Jun 2012 Link to this post

    Hi,

    You could take our default XAML and make your custom filtering control look like the stock one. But you will have to implement all the custom code-behind logic because it is custom.

    Regards,
    Ross
    the Telerik team

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

Back to Top