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

Sorting on hyperlink data in RadGrid

3 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phu
Top achievements
Rank 1
Phu asked on 14 Jan 2011, 08:58 AM
Hi,

I have a radgrid as image attached below.
Which have column with header text is "Title (linked to item with edit menu)", which have data type is string and values is hyperlink, i want to sort this column to ascending/descending. I know when RadGrid do sorting, it will sort values in datatable, but this values is a html string so sorting result after sorting will not as desired. Please give me a solution to solve this problem.

Thanks in advance
Phu Dang

3 Answers, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 18 Jan 2011, 12:14 PM
Hello Phu,

To implement the desired functionality, please set the SortExpression value of the column to match its DataTextField property.
You can examine the Sorting for GridHyperLinkColumn/GridTemplateColumn for additional information.

I hope this helps.

Regards,
Mira
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Phu
Top achievements
Rank 1
answered on 19 Jan 2011, 02:30 AM
Hi Mira, thanks for your support :-)
0
Dave
Top achievements
Rank 1
answered on 31 Jan 2011, 05:46 AM
I have the same issue! Thanks for the solution!
Tags
Grid
Asked by
Phu
Top achievements
Rank 1
Answers by
Mira
Telerik team
Phu
Top achievements
Rank 1
Dave
Top achievements
Rank 1
Share this question
or