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

Pager button links do not change

3 Answers 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 27 Oct 2011, 04:12 PM
In my RadGrid no matter what page I am on next page always navigates to the second page.  If I have more than 10 pages and click the [...] the buttons change appropriatly but when they are clicked they return to the page they initally would have navigated to.

Richard

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 27 Oct 2011, 04:40 PM
Hello Richard,

Can you please make sure that EnableViewState property of the grid is set to true?

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
0
Richard
Top achievements
Rank 1
answered on 27 Oct 2011, 04:43 PM
It is.
Here is the code

<

telerik:RadGrid ID="grdEquipmentInventory" SkinID="FacilityInventoryGrid" runat="server"

 

OnNeedDataSource="grdEquipmentInventory_NeedDataSource" CssClass="width100"

 

PageSize="10" PagerStyle-ShowPagerText="true" AllowPaging="True" BorderWidth="0px"

 

OnItemDataBound="grdEquipmentInventory_ItemDataBound" EnableViewState = "true">

 

<GroupingSettings CaseSensitive="false" />

 

 

<MasterTableView ShowHeader="false" EnableViewState = "true">

 

 

<PagerStyle Height="20px" BackColor="ButtonFace"/>

0
Pavlina
Telerik team
answered on 28 Oct 2011, 03:28 PM
Hi Richard,

I took the sample code you provided and put it in a sample page following a similar scenario you have and it is working properly. I am attaching the page for your reference. Give it a try and see if it helps.

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
Richard
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Richard
Top achievements
Rank 1
Share this question
or