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>
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>