This is a migrated thread and some comments may be shown as answers.

template columns are not sorting

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Erin
Top achievements
Rank 1
Erin asked on 12 Nov 2013, 12:33 PM
Hi,
I have a Radgrid with many columns. I have set AllowSorting=true , but the template columns are not sorting. Why? 

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Nov 2013, 12:37 PM
Hi Erin,

Please make sure that you have set the SortExpression property of the GridTemplateColumn to have sorting functionality.

ASPX:
<telerik:GridTemplateColumn HeaderText="ShipCountry" SortExpression="ShipCountry">
    <ItemTemplate>
        <%# Eval("ShipCountry") %>
    </ItemTemplate>
</telerik:GridTemplateColumn>

Hope this helps,let me know if any concern.
Thanks,
Princy
Tags
Grid
Asked by
Erin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or