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

[Solved] Filtering Criteria

1 Answer 154 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 04 Jun 2008, 04:08 PM
So I have a RadGrid that is setup to use a combination of default filtering and customized filtering.  I have implemented custom filtering with a dropdownlist on a column based on the article found here

I am having issues though when I filter on the custom column first and then try to filter using one of the existing default filtering columns.  I can detect the event in the ItemCommand event of the RadGrid, but I cannot find the search string at run time in the server side code. 

So for example,  I first filter my grid on my custom State column by filtering on "Georgia".  And then I try to filter on a default filtered City column by searching for all records that Contain "Atl".  Now in the ItemCommand event while debugging, I cannot find the search string "Atl" in any of the properties of the GridCommandEventArgs or sender parameters. 

I feel that it has to be available somewhere.  Anyone have any ideas?

Thanks,
Mike

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 09 Jun 2008, 08:04 AM
Hello Michael,

You can access the corresponding filter textbox (identifying the column by the second value in the e.CommandArgument parameter in the ItemCommand handler) and extract its Text value. Review the help article pointed below for more details:

http://www.telerik.com/help/aspnet-ajax/grdoperatewithfilterexpression.html
 
Greetings,
Stephen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or