client side sort

3 posts, 0 answers
  1. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 18 Feb 2009 Link to this post

    Hi,

    Can someone tell me how to sort a node collection client-side pls
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Feb 2009 Link to this post

    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



  3. ali
    ali avatar
    17 posts
    Member since:
    Jan 2009

    Posted 19 Feb 2009 Link to this post

    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.

Back to Top