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

[Solved] Loop through filtered grid fields

4 Answers 167 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 May 2008, 10:50 AM
Hello,

I have a radgrid that is bound to a list of customers - I also have filtering set up on the grid. I have the customer email address as a datakeyname. What I want to do is filter the grid and then generate a list of email addresses from that filtered grid.

But also - I am using paging so I only have 10 results per page. If I filter the grid and I get, for example, 27 results back, I want to retrieve the email addresses of all these 27 records, not just the 10 displaying on the page.

Is this possible?

Thanks.

4 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 09 May 2008, 02:25 PM
Any ideas?
0
Vlad
Telerik team
answered on 09 May 2008, 02:38 PM
Hello John,

This should be accomplished at data-source level - the grid does not have any more items or data except the items on the current page.

Best wishes,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 09 May 2008, 02:45 PM
ok thanks.

In that case - is it possible to get the current filter method? So, If I just filtered my customers by age lessthan 50, I can then get that filter method (lessthan) and the value (50). Which I can then use to perform an actual sql level query?
0
Vlad
Telerik team
answered on 10 May 2008, 08:42 AM
Hi John,

You can get current grid filter string from RadGrid1.MasterTableView.FilterExpression.

Kind regards,
Vlad
the Telerik team

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