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

[Solved] Column Sorting

1 Answer 111 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gagan Garg
Top achievements
Rank 1
Gagan Garg asked on 22 Jan 2010, 02:07 PM
Hi Telerik Guys

I am facing problem in grid column sorting. Please see given below:-


<

 

telerik:GridTemplateColumn HeaderText="Name" UniqueName="Name" SortExpression="FirstName,LastName">

 

 

<ItemTemplate>

 

 

<asp:Label ID="NameLabel" runat="server" Text='<%# Eval("FirstName") + " " + Eval("LastName") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

<HeaderStyle Width="28%" Font-Names="Trebuchet MS" ForeColor="#3496b4" Font-Size="14px" />

 

 

</telerik:GridTemplateColumn>

 



When we click on the column Name it sorts only in Ascendind mode.

Please suggest a tip to resolve it.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 25 Jan 2010, 09:54 AM
Hello Gagan,

Please examine the following help article which elaborates on this subject, for more information about how to achieve the desired functionality:
Sorting for GridHyperLinkColumn/GridTemplateColumn

I hope this helps.

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Gagan Garg
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or