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

Add to filter expression from selected item in dropdown

2 Answers 64 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wired_Nerve
Top achievements
Rank 2
Wired_Nerve asked on 18 May 2010, 10:56 PM
I have a template column in a  radgrid.
The filter row applies any filters whenever a user enters text into any filter textbox and presses enter.

I have added a template column that has a dropdown bound to a linq to sql datasource.

It is populating just fine.  I am hocking up to the selectedindexchanged event on the dropdown when a user changes the filter item in the dropdown and it is set to autopost back.

In the selectedIndexChanged server side code (.cs)  I need to apply whatever they selected to the radgrid filters.  

What I mean by this:
  If the user has already applied a few filters before selecting a item in the dropdown. I need to append this additional filter parameter to the filterexpression of the radgrid.

Anyone aware of a good example of applying another filter and maintaining the current filters already applied.


2 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 24 May 2010, 07:48 AM
Hello Warren,

A behavior similar to the one you need is demonstrated in the first grid from the following online example:

Filter templates

Please give it a try and let me know how if it works for your scenario.

Regards,
Martin
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Wired_Nerve
Top achievements
Rank 2
answered on 24 May 2010, 03:42 PM
Thanks for your help and it worked perfectly. 
Tags
Grid
Asked by
Wired_Nerve
Top achievements
Rank 2
Answers by
Martin
Telerik team
Wired_Nerve
Top achievements
Rank 2
Share this question
or