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

AllowSorting & AllowPaging not working together

1 Answer 41 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Brian asked on 24 Aug 2010, 05:46 PM

I have a simple RadGrid with both AllowSorting and AllowPaging set to TRUE, but I can't seem to get both settings to work together.

For example, my RadGrid has 2 pages where I can scroll up and down between two pages (EnableAJAXScrollPaging="True").  When I click on one column to sort on the Page 1, the rows in Page 1 are sorted properly.  However, when I scroll down to Page 2, the rows in Page 2 are not sorted by the same column as in Page 1.  And then when I go back to Page 1, everything is back to unsorted.

Below is what I have in my code.  Thanks in advance.

    <radG:RadGrid ID="grdLeaves" runat="server" AllowMultiRowSelection="True"
    AllowSorting="True" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
    LoadingTemplateTransparency="45" ShowStatusBar="True"
    Skin="Ice" GroupingEnabled="False" DataSourceID="SqlDSMain">
    <PagerStyle Mode="NextPrevAndNumeric" />
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True" />
    <HeaderStyle BackColor="Transparent" Height="20px" />
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" EnableAJAXScrollPaging="True" />
        <Resizing EnableRealTimeResize="True" />
        <ClientEvents OnGridCreated="GridCreated" OnRowContextMenu="gridLeavesMenu" />
    <MasterTableView DataSourceID="SqlDSMain">
        <ExpandCollapseColumn Visible="False">
        <HeaderStyle Width="19px" />
        <RowIndicatorColumn Visible="False">
        <HeaderStyle Width="20px" />

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 25 Aug 2010, 10:47 AM
Hello Brian,

Please examine the following online example which demonstrates the desired functionality. If everything works as expected, you could be able to imitate the settings in that demo to get your code working.

All the best,
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
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question