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
You may take a look at the following forum threads for further reference:
"DistinctValuesLoading for a Custom FilterControl"
"Changing the default filter operator"
Vanya Pavlova
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
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.
Now I see what you mean.
I am afraid that RadGridView cannot not support this "real-time" distinct value refresh.
Ross
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>