The RadGrid is billed as supporting the following features:
- Codeless databinding
- Codeless insert, update, delete datasource operations
- Codeless paging, sorting, selecting, filtering
My scenario:
I bind a grid to a webservice. This works fine.
I'm using the following grid markup:
<telerik:RadGrid ID="GridCustomers" runat="server"
AllowPaging="True"
AllowSorting="True"
Skin="Simple"
AutoGenerateColumns="False">
<MasterTableView EnableViewState="False">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="CustomerId" SortExpression="CustomerId" UniqueName="CustomerId" DataType="System.String" HeaderText="Customer ID" />
<telerik:GridBoundColumn DataField="ContactTitle" SortExpression="ContactTitle" UniqueName="ContactTitle" DataType="System.String" HeaderText="Contact Title" />
<telerik:GridBoundColumn DataField="ContactName" SortExpression="ContactName" UniqueName="ContactName" DataType="System.String" HeaderText="ContactName" />
</Columns>
</MasterTableView>
<ClientSettings AllowColumnsReorder="True" AllowDragToGroup="True"
ReorderColumnsOnClient="True">
<Selecting AllowRowSelect="True" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
<DataBinding Location="RadGrid.aspx" EnableCaching="true" SelectMethod="GetData" />
</ClientSettings>
</telerik:RadGrid>
<telerik:RadAjaxLoadingPanel ID="Panel1" runat="server"/>
My sorts don't happen automatically on the client side. Of the samples I've seen so far on the Telerik site, all involve server or client side coding to make the sorts work. Other third party vendors have grids which use codeless sorting. I.e., you don't write either client or server side code to react to sort events, etc. The grid emits JavaScript which does all this work automatically.
Can someone point me to a sample which demonstrates the Telerik idea of "codeless" sorting?
Thanks in advance.