This is a migrated thread and some comments may be shown as answers.

How to define de default filtering operator ?

4 Answers 90 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 29 Nov 2011, 10:33 AM
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 :|

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 29 Nov 2011, 10:41 AM
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 >>

0
Rossen Hristov
Telerik team
answered on 29 Nov 2011, 11:23 AM
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 >>

0
Mike
Top achievements
Rank 1
answered on 29 Nov 2011, 02:46 PM
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.
0
Accepted
Rossen Hristov
Telerik team
answered on 29 Nov 2011, 02:58 PM
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 >>

Tags
DataFilter
Asked by
Mike
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Rossen Hristov
Telerik team
Mike
Top achievements
Rank 1
Share this question
or