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

[Solved] Get items filtered grid and data item(row) is based on

5 Answers 190 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hans Notelteirs
Top achievements
Rank 1
Hans Notelteirs asked on 26 May 2009, 09:17 AM
Hi,

I am using a radgrid with Cardview. Since I use the cardview, I put my pageSize to 1 so one item is visible per page.
The grid has a list of products as datasource. (List<Product>).
I am able to filter out the needed products, but I want to genereate a report from those filtered items.
So how is it possible to get all the remaining items in the grid? When I use grid.Items, only the item on the current page is inside.

And I also have an other question. Is it possible to get the data (in my case now the product) the radgrid item is based on?
It is possible to get the current row with all it's values, but what if my row doesn't hold all the values I need in my code?

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 29 May 2009, 07:16 AM
Hi Hans,

The question set forth has been addressed in the support ticket, which you have opened on the matter.
To avoid duplicate posts, we can continue our communication there.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Nandakumar
Top achievements
Rank 1
answered on 28 Oct 2009, 09:58 AM
Hi,

I have a similiar issue where i need to get the list of filtered objects after filtering.
I need to apply some business rules on the filtered collection.
I am able to retrieve the "FilterExpression" but not the filtered collection.
Please let me know how to resolve this issue.

Thank You.
0
Yavor
Telerik team
answered on 02 Nov 2009, 07:28 AM
Hi Nanda,

In this case, after you retrieve the filter expression, you can re-query the database, and store all retrieved data in a temp datatable. In this way, you will be able to get all the filtered data.
I hope this suggestion helps.

Greetings,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Goran
Top achievements
Rank 1
answered on 07 Feb 2013, 10:04 AM
Hi,

Are there any updates on this issue from the first post.

How to get items that are filtered out on other pages?

Thank you!
0
Eyup
Telerik team
answered on 12 Feb 2013, 07:57 AM
Hi Goran,

To get the items on all of RadGrid pages, you will need to Rebind your grid two times - first time to get all of the items by disabling paging, and second time to enable paging back. You can find a practical implementation of the described approach in the following code-library:
http://www.telerik.com/community/code-library/aspnet-ajax/grid/647760-get-selected-items-through-all-pages.aspx

That should do the trick. If you have different requirements or further instructions, please elaborate on your specific scenario.

All the best,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Hans Notelteirs
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Nandakumar
Top achievements
Rank 1
Goran
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or