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

[Solved] Traversing all records in gird with Paging

3 Answers 96 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dave Hollen
Top achievements
Rank 1
Dave Hollen asked on 08 Feb 2010, 05:30 PM
Hello,

I have a radgrid with Paging turned on and set to display 10 items per page.

What I need to be able to do is to loop through all records in the grid, not just the 10 displayed on each page.  For example, if I have 25 records, I need to loop through all 25, not just the first 10.

Is there a way to do this through Javascript?

I have tried to use the dataItems property on the grid's master table, but that only returns the items on the currently displayed page of the grid.

Thanks!

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 08 Feb 2010, 09:31 PM
Hello Dave,

You can traverse only the items that exists on the current page - there is no direct way to get the rest of the items.
How to navigate all items in radgrid

Best regards,
Daniel
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Dave Hollen
Top achievements
Rank 1
answered on 08 Feb 2010, 10:00 PM
How do I turn paging on and off in javascript?
0
Daniel
Telerik team
answered on 11 Feb 2010, 06:38 PM
Dave,

There is no easy way to iterate all items on the client when using paging and server-side binding.

To turn the paging on/off, you should use server-side code. You could disable the paging on the server and then traverse the items on the client.

Of course, if you use client-side binding, you can just bind RadGrid to all items in your data source.

Regards,
Daniel
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
Dave Hollen
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Dave Hollen
Top achievements
Rank 1
Share this question
or