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

How to add custom sorting to rad tree list

1 Answer 104 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Uma
Top achievements
Rank 1
Uma asked on 03 Feb 2012, 11:54 AM
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

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 08 Feb 2012, 08:50 AM
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 >>
Tags
TreeList
Asked by
Uma
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or