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

Grid stuck on page one

1 Answer 17 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kati
Top achievements
Rank 1
Kati asked on 02 Oct 2013, 03:58 PM

5757

Hello
  
I have a Grid , the paging say 13 records in 2 pages. The first 10 records are showing on page 1, and there should be another 3 on page 2, but the paging does not work, refreshes the page and shows page 1 again.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 03 Oct 2013, 04:06 AM
Hi Kati,

It's hard to identify what is causing such an issue,Please try this sample code on paging.If this doesn't help,please provide your code.

ASPX:
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
    <telerik:RadGrid ID="RadGrid3" DataSourceID="SqlDataSource1" AllowSorting="True"
        AllowPaging="True" PageSize="5" runat="server" GridLines="None" Width="100%">
        <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
    </telerik:RadGrid>
</telerik:RadAjaxPanel>
<telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
</telerik:RadAjaxLoadingPanel>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Northwind_newConnectionString3 %>"
    SelectCommand="SELECT OrderID,CustomerID,ShipCity,ShipCountry FROM [Orders]"></asp:SqlDataSource>

Thanks,
Princy
Tags
Grid
Asked by
Kati
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or