Hi - my grid is as follows:
<telerik:RadGrid CellSpacing="0" CellPadding="0" OnItemDataBound="rgItemDataBound" Skin="Vista" ShowHeader="true" PagerStyle-Position="TopAndBottom" AllowPaging="true" PageSize="10" AutoGenerateColumns="false" Width="700" ID="RadGrid1" runat="server"> |
<MasterTableView > |
<Columns> |
<telerik:GridTemplateColumn> |
<ItemTemplate> |
<div class="documentRow"> |
<div class="documentInfo"> |
<h3> <%# Eval("Subject").ToString() %></h3> |
<p class="postDate"><strong>Added:</strong> <%# Eval("PostDate", "{0:dd MMM yyyy}")%> | <strong>Views:</strong> <%# Eval("TotalViews").ToString() %></p> |
<p class="documentBody"> <%# Eval("Body").ToString() %> <%# Eval("PostID", "<a href='/media/p/{0}.aspx'>View document</a>") %></p> |
</div> |
</div> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
How do I add sorting to this as there aren't clearly defined columns in the grid? I'd like to be able to sort on Subject, PostDate and Views
Thanks