So, for now I just need two custom features for the filter control (filter row mode):
- first is a bit complex: I need to deferred filter at the very moment the user first clicks on the funnel filter icon. The second times he clicks it, it should display the default filter popup. So basically: user types on filter, nothing happens -> user clicks on the icon, it filters -> user click it once more, opens the popup
- now second is: I need to reduce the amount of information from inside that popup for a more friendly GUI of it
if you have an answer for either of those, please let me know asap, as my trial period is about to end!
Thank you, I am really enjoying telerik support so far!
5 Answers, 1 is accepted
Let me go straight to your questions:
1. I am afraid that this is not supported out-of-the-box. The closest solution for this is to Change the Default Selected Filter Operator. In this way when you click the funnel it will filter using the new filter operator.
2. I have already answered the other forum thread. However, if you are usng FilterMode=FilterRow then you need to Remove Some of the Available Filter Operators. In this way you will limit the items displayed in the popup.
thank you for your answer, Yoan.
Regarding the solution for the second point, is it possible to have a central style so that every grid will use it by default?
so that I won't keep repeating that code all the time
The way to go is with an Attached behavior. You will write the attached behavior only once. This attached behavior will attach to the event and will remove the operators. Here is a very nice article about event handling with attached behaviors.
that approach is brilliant. but I do not see why my breakpoints inside that behavior class wont even hit
here is some code:
Dictionary (resource file):
I am sending you a sample project which demonstrates the suggested approach. Please review it and let me know how it works at your end.