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

Order nodes by node.text

1 Answer 43 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Fernan
Top achievements
Rank 1
Fernan asked on 12 May 2010, 09:37 AM
Hi,

I need order the nodes by node.text . I am adding programatticly new nodes. For example,  in the radtreeview exists the following nodes:

-Park 1
    - Aero 1
    - Aero 2
+Park 4


Then, if the user decide add the park 3, when I add the new node, I have the following:


-Park 1
    - Aero 1
    - Aero 2
+Park 4
+Park 3      <--- ERROR, no order by node.text


I need order the root nodes and children nodes by node.text. Then, I need the following:

-Park 1
    - Aero 1
    - Aero 2
+Park 3   <--- I need order by node.text .
+Park 4


Thank you,

Fernan

1 Answer, 1 is accepted

Sort by
0
Fernan
Top achievements
Rank 1
answered on 12 May 2010, 10:15 AM
I am sorry,

I found the solution, the very simple solution. I had not see this method.

this.radtreeview1.sort()

Sorry for the stupid reply.


Tags
Treeview
Asked by
Fernan
Top achievements
Rank 1
Answers by
Fernan
Top achievements
Rank 1
Share this question
or