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

[Solved] Paging issue

2 Answers 102 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 25 Jan 2013, 03:34 AM

I am using the grid to display data with paging. As shown in the demo, I am trying to implement both numeric and Next/Previous buttons pager.
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/paging/defaultcs.aspx

However, I am facing the following issue:

If my datasource has 55 records and the page size is 20 (default). I get 3 pages and clicking on 1, 2 and 3 (page numbers) loads the correct records on the page.

However, if I change the default page size to say 10. I see 6 pages and the data on the first page (10 records) is fine, but as soon as I change the page number (by clicking on the numbers) to go to the next page (say 2), the page size is reset to 20 and I am back to seeing 3 pages.

What am I missing?

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True"
    EnableViewState="true" AutoGenerateColumns="False" PageSize="20" AllowMultiRowSelection="false"
    OnItemDataBound="RadGrid1_ItemDataBound" OnNeedDataSource="RadGrid1_NeedDataSource"
    PagerStyle-AlwaysVisible="true">

2 Answers, 1 is accepted

Sort by
0
Radoslav
Telerik team
answered on 29 Jan 2013, 08:29 AM
Hi James,

Thank you for contacting us.

I tried to reproduce the described issue but to no avail. I am sending you a simple example based on your code snippet. Please check it out and let me know what differs in your case.

Looking forward for your reply.

Regards,
Radoslav
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
James
Top achievements
Rank 1
answered on 30 Jan 2013, 03:05 AM
Radoslav ,

I have the same settings. But it doesn't work for me. Can you think of any other reason why?
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Radoslav
Telerik team
James
Top achievements
Rank 1
Share this question
or