How to add custom sorting to rad tree list

2 posts, 0 answers
  1. Uma
    Uma avatar
    18 posts
    Member since:
    Jan 2012

    Posted 03 Feb 2012 Link to this post

    Hi,

    I need to add our own sorting to tree list.

    Is it possible?

    I need to sort the tree list value by alphabetical order.

    i need to show the alphabetical letters(a to z).with link.

    when the user click the a button, it sort the tree list with starting letter of a values.

    Is there any way to achieve this?

    Thanks,
    Uma
  2. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 08 Feb 2012 Link to this post

    Hi Uma,

    You could fire a SortCommand in the click handler of the button with the needed parameters. You can see how this can be done here:
    http://www.telerik.com/help/aspnet-ajax/treelist-fire-command-events-from-code.html

    Alternatively, you could directly pass a sorted datasource to RadTreeList on button click and call Rebind() for it.

    Let us know if you have difficulties with using these approaches.

    Regards,
    Tsvetina
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top