PDA

View Full Version : TreeStore sorter



A.Rothe
18 Nov 2011, 6:53 AM
Hi,

can I sort the TreeStore with different StoreSorter on some sub-trees? I need a descending sort on level 3 in the tree (a number), on level 2 I need an ascending sort of a name and on root level I would like sort partial: I have some static nodes there, which have already an order and all newly created nodes at this level should start after the static nodes and should have an ascending order by its name.

At the moment I have a StoreSorter, which differentiates between the instances of ModelData (the levels of the tree) and compares different properties. But I can not set the direction there.

Is the store the right place to do that or can I sort the TreeGrid or should I do it on the back-end within the database?

Thanks
André B)