Is there a problem with sorting Template Column?
I bind the grid to Anonymus Type on codebehind
Sorting any other column GridBoundColumn or GridDateTimeColumn
works fine.
please advise......
below is my code.
<telerik:GridBoundColumn DataField="rs.ReqServiceID" SortExpression="rs.ReqServiceID" HeaderText="ServiceID"/> |
<telerik:GridDateTimeColumn DataField="rs.DateFollowup" SortExpression="rs.DateFollowup" HeaderText="Followup Date" Groupable="true" Aggregate="Min" DataType="System.DateTime" FilterListOptions="VaryByDataType" HeaderStyle-Width="140" DataFormatString="{0:g}"/> |
<telerik:GridTemplateColumn HeaderText="User" SortExpression="rs.UserName" DataField="rs.UserName" UniqueName="rs.UserName"> |
<ItemTemplate> |
<asp:Image ImageUrl="~/images/service_edit.png" Visible='<%#IIF(Eval("rs.UserName")<>"", "true","false")%>' ID="imgUserName" runat="server" ImageAlign="AbsBottom"/> <%#Eval("rs.UserName")%> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |