1. #1
    Sencha User
    Join Date
    Dec 2008
    Location
    Manchester, UK
    Posts
    103
    Answers
    4
    Vote Rating
    8
    LisburnLad will become famous soon enough

      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
    103
    Answers
    4
    Vote Rating
    8
    LisburnLad will become famous soon enough

      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
    Stockholm, Sweden
    Posts
    2,712
    Answers
    33
    Vote Rating
    104
    mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all mankz is a name known to all

      0  

    Default


    Don't forget to mark your question as answered

Thread Participants: 1

Tags for this Thread