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

Easiest approach to filtering using multiple selected Items from dropdown?

1 Answer 65 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard Weeks
Top achievements
Rank 2
Richard Weeks asked on 11 Feb 2010, 01:59 AM
The subject says it all really :)

I have a main data table, joined to a titles table via a lookup, which means rows in the main data table can have multiple titles assigned.

I want to filter my grid showing rows from the main data table (plus the relevant title from the titles table pulled in via an inner join). But I want to filter my grid by makinging MULTIPLE selections in the title dropdown list.

I've come unstuck in my attempts, so here I am looking for expert help :)

Regards,
Richard

1 Answer, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 16 Feb 2010, 01:36 PM
Hello Richard,

This scenario is not automatically supported in RadGrid. Still, it can be implemented by modifying the RadGrid.MasterTableView.FilterExpression to form a custom filter expression that will filter the grid data as required.

You can find attached a small ASPX form you can run locally. I use a GridBoundColumn with a CheckBoxList in the FilterTemplate. I manually build the grid filter expression, pass it to the grid and rebind. Check it out.

Best wishes,
Veli
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.
Tags
Grid
Asked by
Richard Weeks
Top achievements
Rank 2
Answers by
Veli
Telerik team
Share this question
or