How to define de default filtering operator ?

5 posts, 1 answers
  1. Mike
    Mike avatar
    75 posts
    Member since:
    Nov 2011

    Posted 29 Nov 2011 Link to this post

    Hi,

    I'm looking for the way to change the default filtering operator (number 1 in the picture). I'd like to set it to "Contains" operator. How can I do that ?

    Other question, how can this control filter the panel containing ditinct values (number 2 in the picture), like does Excel ?

    Thanks for your help.

    Ps : Hope this is the right place to post this thread :|
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 29 Nov 2011 Link to this post

    Hello Radouan,

     

    You may take a look at the following forum threads for further reference:

                                           "DistinctValuesLoading for a Custom FilterControl"
                                                   "Changing the default filter operator"


    All the best,
    Vanya Pavlova
    the Telerik team

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

  3. DevCraft banner
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 29 Nov 2011 Link to this post

    Hi Radouan,

    Please, excuse us. It seems that we have misunderstood your questions.

    The approach for the default filter operator that was mentioned in the previous post is outdated and obsolete. There is an easier way after Q3 2011.

    You can attach to the FilterOperatorsLoading event of the grid, check the column and if it is the one of interest you can set the default filter operator in the event arguments of the event. Additionally you can remove unwanted operators. Read more about this here.

    As for your second question, the link that was provided in the previous post is not relevant because you are not using a custom filtering control but our stock filtering control. Please, disregard this link.

    Can you please elaborate how do you want to alter the default behaviour of our stock filtering control distinct values and we will see whether this is possible or not.

    Once again, I would like to apologize for the initial misunderstanding.

    We are looking forward to hearing from you.

    Greetings,
    Ross
    the Telerik team

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

  5. Mike
    Mike avatar
    75 posts
    Member since:
    Nov 2011

    Posted 29 Nov 2011 Link to this post

    Hi Ross & Vanya,

    No problem :)

    Thanks for your replies. For my second question, what I'm looking for is filtering the panel that containing distinct values (see 2 in the picture), and this while user typing his filter string. this is exactly what does Excel (you can do a test).

    For exemple :

    My distinct values panel contains  : "123", "4156", "548", "5417"....

    While operator is set to "contains", and while user types "1", the distinct values panel is filtered like the gridView behavior.

    Thanks.
  6. Answer
    Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 29 Nov 2011 Link to this post

    Hello Radouan,

    Now I see what you mean.

    I am afraid that RadGridView cannot not support this "real-time" distinct value refresh. 

    Best wishes,
    Ross
    the Telerik team

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

Back to Top
DevCraft banner