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

Paging problem

1 Answer 48 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Yoni
Top achievements
Rank 1
Yoni asked on 08 May 2011, 10:42 AM

Hello,
I wrote this question in another thread, but i did get an answer,
maybe, because it was a different subject:

my grid (8 items) is with paging (PageSize = 5),
but i have two problems:
1) when i do 'for each' on the grid items , the "RadGrid1.Items.Count" equals - 5 and not 8
and then i get a message:
 "index was out of range. must be non negative and less then the size of the collection. parameter name : index"
2) when i add a new record - i dont see it because it's at an other page,
how can i make it go to the last page - where the new item is?

thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 09 May 2011, 01:51 PM
Hello Yoni,

This is rather a generic exception that indicates you attempt to reference an item from a collection with invalid index. Can you please provide some relevant code/markup which will help us to track the issue?

All the best,
Pavlina
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Yoni
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or