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

Grid paging is not working

3 Answers 75 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rita15
Top achievements
Rank 1
Rita15 asked on 30 Mar 2010, 05:42 AM
Hi,

    I have a master page which  has RadAjaxManager. In content Page (page1.aspx), I am loading the user control 1 dynamically. The user control 1 has a grid . I am using external edit form to update/add/delete data inside the grid, which is included in another user control 2. The user control2 also gets loaded dynamically.

Everything is working fine. But when I try to go to Page1 to Page-2 and try to select an item in page-2, the selected item inside the grid is not changing . Still the selected item is the Item I selected in Page1.

I use a session variable to store the selectedItem and update it in "RadGrid1_SelectedIndexChanged" event.

Any idea why it is happening?

Thanks!

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 01 Apr 2010, 01:16 PM
Hello Rita,

Based on the supplied information, it is hard to determine what is causing this unwanted behavior. It may be due to the ajax settings, or perhaps improper binding of the controls. If the problem persists, you can open a formal support ticket, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.

Sincerely yours,
Yavor
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.
0
Rita15
Top achievements
Rank 1
answered on 07 Apr 2010, 10:07 PM
Hi,

 Thanks for the response.

I load the RadGrid as a user control. So for each postback the Radgrid is created dynamically. So my question is, Let us say I select an item in Page-3 and I do some processing based on the selected Grid Item which creates the PagePostBack. After the Postback the selected Grid Item is lost and also the Grid shows the first page only( which I think is correct).

But I want to show the Grid as it was before the Postback i.e. with the correct page Page-3 and the Selected Grid item on Page-3 as Selected.

Is there a solution for this?
Thanks!
0
Yavor
Telerik team
answered on 13 Apr 2010, 07:48 AM
Hello Rita,

A postback/callback on the page should not cause the grid to lose its page index. This is demonstrated in the following example:

http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/paging/defaultcs.aspx

If the behavior in your case is not the same in your case, there is most probably a problem with the way the control is created - to address it, you can send us a small project, for additional review and testing.

Sincerely yours,
Yavor
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
Rita15
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Rita15
Top achievements
Rank 1
Share this question
or