Sorting on hyperlink data in RadGrid

4 posts, 0 answers
  1. Phu
    Phu avatar
    5 posts
    Member since:
    Jan 2011

    Posted 14 Jan 2011 Link to this post

    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
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 18 Jan 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Phu
    Phu avatar
    5 posts
    Member since:
    Jan 2011

    Posted 18 Jan 2011 Link to this post

    Hi Mira, thanks for your support :-)
  5. Dave
    Dave avatar
    7 posts
    Member since:
    Oct 2010

    Posted 30 Jan 2011 Link to this post

    I have the same issue! Thanks for the solution!
Back to Top