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

RadFilter for Dummies ???

3 Answers 82 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 2
Paul asked on 24 Jun 2013, 07:17 PM
Hi All,
   we just discovered the RadFilter control.

We had been mostly using standard asp controls to feed parameters into a code behinds method call to a stored procedure, thus every time we wanted to re-filter the data set, we got the data set again with a fresh query.

I had been putting in column by column custom filtering when I stumbled across the RadFilter control.

While the RadFilter control is very powerful, we are afraid some of our less knowledgeable users will be clueless on how to use it.

Can we:
1) Preset the RadFilter with a set of initial filters?
2) Set up "Presets" of commonly used filter sets that I could apply with a button press?

3 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 27 Jun 2013, 07:06 AM
Hello Paul,

You could achieve the desired functionality by following the demo shown below. You could take a look at the CreateDefaultFilterExpressions method which adds expressions to the RadFilter.RootGroup. Note that the same approach could be used in a button click scenario.

Regards,
Antonio Stoilkov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Paul
Top achievements
Rank 2
answered on 01 Jul 2013, 08:52 PM
Thanks, your article Filter - Working With Items And Expressions did indeed show me how to add default filter expressions to the rad filter control.

I am getting feedback that this will be still too complex for some users.

I see we can have both a RadFilter control and column filtering on at the same time - I guess they both will just edit the RadGrids filter expression? 

If we have both, how could we keep the radFilter expressions in sync with the column filters. ( That is to say both filters should never contradict each other - if I change a column filter, the the radFilter should pick up and show the change and visa-versa.
0
Antonio Stoilkov
Telerik team
answered on 02 Jul 2013, 06:39 AM
Hello Paul,

Unfortunately, turning RadFilter and RadGrid build in filtering is not supported and keeping both controls in sync is complex scenario and the implementation will require processing and parsing individual expressions and support for both turning RadGrid expressions to RadFilter expressions and vice versa. Note that such implementations are developer responsibility.


Regards,
Antonio Stoilkov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Filter
Asked by
Paul
Top achievements
Rank 2
Answers by
Antonio Stoilkov
Telerik team
Paul
Top achievements
Rank 2
Share this question
or