Easiest approach to filtering using multiple selected Items from dropdown?

2 posts, 1 answers
  1. Richard Weeks
    Richard Weeks avatar
    95 posts
    Member since:
    Oct 2009

    Posted 10 Feb 2010 Link to this post

    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 :)

  2. Answer
    Veli avatar
    2002 posts

    Posted 16 Feb 2010 Link to this post

    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,
    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.
Back to Top