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

client side sort

2 Answers 74 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
ali
Top achievements
Rank 1
ali asked on 18 Feb 2009, 03:31 PM
Hi,

Can someone tell me how to sort a node collection client-side pls

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 19 Feb 2009, 09:14 AM
Hi Ali,

Go through following  forum link which discusses a similar requirement. Telerik is suggesting to refer a codelibrary for implementing Sorting with RadTreeView. You can give a try with that and see if it helps.
Treeview nodes sorting

Shinu



0
ali
Top achievements
Rank 1
answered on 19 Feb 2009, 09:25 AM

That's not client-side ie. Javascript.

Basically, once a node has been added into another collection through:

 

var

allnodes = destinationNode.get_nodes();

 

allnodes.add(sourceNode);

I want to be able to sort it so that items with a particular imageUrl are sorted above another type and sorted by text within that group.
I found this link:
http://www.telerik.com/community/forums/aspnet-ajax/treeview/sorting-the-checked-nodes-in-treeview.aspx

but found that the object returned by get_nodes() does not have a sort method.

Tags
TreeView
Asked by
ali
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
ali
Top achievements
Rank 1
Share this question
or