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

How to get the entire rows inside grid when paging is enabled

1 Answer 76 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Akki
Top achievements
Rank 1
Akki asked on 14 Jun 2012, 04:18 PM

Hi,

I am using radgrid with 4 pages where pagesize is set to 15.Now i navigate to page 2 edit  some of cells and come back to
page 1 and click on save when try to loop through the grid items using
  foreach (GridDataItem ObjeACH in rdGrdMenu.Items)
            {
} I will get only first 15 items of first page.
I want to loop through all items of grid. How can i do that ? is there any way to accomplish ??

Regards,
Akki

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Jun 2012, 05:35 PM
Hi Akki,

When the grid is in paging mode only the items for the current page are retrieved - there are no items in memory. However, if you want to operate with all records from the source when the grid paging is enabled, you can reference directly the data from the underlying data source to process further operations over it. The other solution is to disable temporary the paging feature of the control and enable it again after you perform the corresponding actions.

All the best,
Pavlina
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
Akki
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or