PDA

View Full Version : [FIXED] [2.0rc1] sorting on a treegrid gives strange results



hstang
29 Jun 2009, 8:35 AM
Hi,

If you look at http://www.extjs.com/examples-dev/explorer.html#basictreegrid

When you expand the tree and then sort Author or Genre, the new results sorted is out of alignment with their parents. I was wondering how I could fix this problem since the demo did not address this.

Thanks

darrellmeyer
30 Jun 2009, 8:00 AM
TreeGrid now supports sorting by column. Right now, sorting will cause the tree grid to be refreshed, therefore removing and select and expand state. We will look to change that in the future. I also added a sortingEnabled config to GridView so you can decide if you want sorting enabled.

Changes are in SVN.

darrellmeyer
1 Jul 2009, 8:56 AM
Fixed in RC2.

verac
16 Jul 2009, 2:40 PM
I'm still seeing this happening with 2.0 release code ...

ss.require
5 Sep 2011, 10:11 AM
Hi, development team!
I still have this problem in 2.2.3 version. My TreeGrid is bound to TreeStore. When I call TreeStore.sort() method the whole TreeGrid reorders but loses select and expand state. Is it possible to force TreeGrid save its state during sorting and how?

This issue is very critical for me, please help!

sven
5 Sep 2011, 10:19 AM
Hi, development team!
I still have this problem in 2.2.3 version. My TreeGrid is bound to TreeStore. When I call TreeStore.sort() method the whole TreeGrid reorders but loses select and expand state. Is it possible to force TreeGrid save its state during sorting and how?

This issue is very critical for me, please help!

I do not see how this is related to the bug report. If you make your treegrid statefull, it will auto expand again (http://www.sencha.com/examples/#asynctreegrid). If you require to also persist selection, than you need to manually add this feature, as GXT is currently not doing this.

shivrajvjadhav
23 Aug 2012, 8:59 AM
Hi,

Even I can see the issue is still there.
I am checking this example:

http://www.sencha.com/examples/#ExamplePlace:reorderingtreegrid


(http://www.sencha.com/examples/#ExamplePlace:reorderingtreegrid)