hello,
I am using a radgrid.
In that I have some columns. I am also using sorting functionality of radgrid.
<telerik:RadGrid ID="EmployeeRadGrid" runat="server" AllowPaging="True" DataSourceID="EmployeeDataSource"
AllowFilteringByColumn="True" AutoGenerateColumns="false" OnItemDataBound="EmployeeRadGrid_ItemDataBound"
GridLines="None" AllowCustomPaging="true" AllowSorting="true" PageSize="10" >
<MasterTableView AllowMultiColumnSorting="true" ClientDataKeyNames="Id" DataKeyNames="All the column names present in the data"
CommandItemDisplay="None" DataSourceID="EmployeeDataSource">
<Columns>
<telerik:GridBoundColumn DataField="EmployeeId" UniqueName="EmployeeId" HeaderText="employeeid"
SortExpression="EmployeeId" AllowSorting="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
AutoPostBackOnFilter="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<asp:ObjectDataSource ID="EmployeeDataSource" runat="server" EnablePaging="True"
TypeName="Layer where my method is present" SelectCountMethod="getEmployeeCount"
SelectMethod="getAllEmployee" StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maximumRows"
SortParameterName="sortBy" ></asp:ObjectDataSource>
Now when I click on the employeeid column, evrytime the call is going to the method "getAllEmployee" to retrieve the data. That method has "startRowIndex", "maximumRows" and "sortBy parameters.
Everytime the startRowIndex and maximumRows parameter values are received correctly according to page size. But the sortBy value is "" always.
So, when i click on the column employeeid, only that page data is getting sorted. The whole data which is bound to radgrid is not getting sorted.
Any help pls.
Thanks in advance.
I am using a radgrid.
In that I have some columns. I am also using sorting functionality of radgrid.
<telerik:RadGrid ID="EmployeeRadGrid" runat="server" AllowPaging="True" DataSourceID="EmployeeDataSource"
AllowFilteringByColumn="True" AutoGenerateColumns="false" OnItemDataBound="EmployeeRadGrid_ItemDataBound"
GridLines="None" AllowCustomPaging="true" AllowSorting="true" PageSize="10" >
<MasterTableView AllowMultiColumnSorting="true" ClientDataKeyNames="Id" DataKeyNames="All the column names present in the data"
CommandItemDisplay="None" DataSourceID="EmployeeDataSource">
<Columns>
<telerik:GridBoundColumn DataField="EmployeeId" UniqueName="EmployeeId" HeaderText="employeeid"
SortExpression="EmployeeId" AllowSorting="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
AutoPostBackOnFilter="true">
</telerik:GridBoundColumn>
</Columns>
</MasterTableView>
<asp:ObjectDataSource ID="EmployeeDataSource" runat="server" EnablePaging="True"
TypeName="Layer where my method is present" SelectCountMethod="getEmployeeCount"
SelectMethod="getAllEmployee" StartRowIndexParameterName="startRowIndex" MaximumRowsParameterName="maximumRows"
SortParameterName="sortBy" ></asp:ObjectDataSource>
Now when I click on the employeeid column, evrytime the call is going to the method "getAllEmployee" to retrieve the data. That method has "startRowIndex", "maximumRows" and "sortBy parameters.
Everytime the startRowIndex and maximumRows parameter values are received correctly according to page size. But the sortBy value is "" always.
So, when i click on the column employeeid, only that page data is getting sorted. The whole data which is bound to radgrid is not getting sorted.
Any help pls.
Thanks in advance.