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

AllowSorting & AllowPaging not working together

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

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" />
    <ClientSettings>
        <Selecting AllowRowSelect="True" />
        <Scrolling AllowScroll="True" UseStaticHeaders="True" EnableAJAXScrollPaging="True" />
        <Resizing EnableRealTimeResize="True" />
        <ClientEvents OnGridCreated="GridCreated" OnRowContextMenu="gridLeavesMenu" />
    </ClientSettings>
    <MasterTableView DataSourceID="SqlDSMain">
        <ExpandCollapseColumn Visible="False">
        <HeaderStyle Width="19px" />
        </ExpandCollapseColumn>
        <RowIndicatorColumn Visible="False">
        <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
    </MasterTableView>
    </radG:RadGrid>


1 Answer, 1 is accepted

Sort by
0
Pavlina
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.
http://demos.telerik.com/aspnet-classic/Grid/Examples/AJAX/VirtualScrollPaging/DefaultCS.aspx

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