Order nodes by node.text

2 posts, 0 answers
  1. Fernan
    Fernan avatar
    15 posts
    Member since:
    May 2010

    Posted 12 May 2010 Link to this post

    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
  2. Fernan
    Fernan avatar
    15 posts
    Member since:
    May 2010

    Posted 12 May 2010 Link to this post

    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.


  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top