[CLOSED] Sorting Treestore

  1. #1

    [CLOSED] Sorting Treestore

    Dear All
    How can I sort treestore that load from xmldatasource
    Last edited by Daniil; Nov 20, 2014 at 9:00 AM. Reason: [CLOSED]
  2. #2
    Hi @elbanna23,

    You could try with a TreeStore's Sorters.
    <ext:TreeStore runat="server" ...>
        <Sorters>
            <ext:DataSorter Property="text" Direction="ASC" />
        </Sorters>
    </ext:TreeStore>
  3. #3

    Work Great

    Thanks Daniil , it's work fine for me.

    how can i make sorting for specific level of nodes ?

    root
    --- level1
    -------level2
    ----- child1
    ----- child3
    ----- child2

    for example if i want to make sorting just for the children to level2 ?

    many thanks in advance
  4. #4
    A TreeStore's Sorters doesn't support sorting of specific nodes only.

    You can sort it in JavaScript via a node's sort method.
    http://docs-origin.sencha.com/extjs/...ce-method-sort

    Another approach could be preparing the data on server before binding to a TreeStore.
  5. #5
    Many thanks Daniil , you can close the thread now.

Similar Threads

  1. [CLOSED] how to enumerate treestore?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 31, 2014, 11:30 AM
  2. [CLOSED] recreating treestore in code behind
    By tMp in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jul 03, 2014, 5:12 PM
  3. [CLOSED] TreeStore with IHierarchicalDataSource
    By bbros in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 26, 2013, 9:25 AM
  4. [CLOSED] there is no remove method in treestore?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 23, 2013, 6:20 AM
  5. [CLOSED] TreeStore issue with 2.2
    By paulc in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 19, 2013, 9:24 AM

Tags for this Thread

Posting Permissions