1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Manchester, UK
    Posts
    85
    Vote Rating
    0
    Answers
    3
    LisburnLad is on a distinguished road

      0  

    Default Answered: Ext.tree.TreeSorter in ExtJS 4

    Answered: Ext.tree.TreeSorter in ExtJS 4


    In version 3 I used the TreeSorter to sort the nodes in a tree branch into alphabetical order. In version 4 the TreeSorter no longer appears to exist. I've tried adding a:

    Code:
     sorters: [{property:'text', direction: 'ASC'}]
    into the associated store, but this doesn't seem to have any effect.

    Does anyone know how to sort a tree in Version 4?

    Thanks,
    Steve

  2. I've just found the answer - I also needed to add "folderSort: true" into the underlying tree store

  3. #2
    Sencha User
    Join Date
    Dec 2008
    Location
    Manchester, UK
    Posts
    85
    Vote Rating
    0
    Answers
    3
    LisburnLad is on a distinguished road

      0  

    Default


    I've just found the answer - I also needed to add "folderSort: true" into the underlying tree store

  4. #3
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Helsingborg, Sweden
    Posts
    2,455
    Vote Rating
    50
    Answers
    29
    mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough

      0  

    Default


    Don't forget to mark your question as answered

Tags for this Thread