PDA

View Full Version : TreeStore with autoSync - D-D reorder 2 top nodes cause to update all siblings



andrej_marincic
26 Sep 2013, 12:01 AM
Hi dear sirs/madams,

i have a problem with TreeStore and drag drop reorder.

Store is configured with autoSync=true.

When i move top node (on any level) on the lets say second place (so first and second node change positions), than update request is sent to server with all sibling nodes on that level. I would expect that only first and second node (the one that actually changed position) in sent to the server. So if i had 10 000 nodes in that level, all 10 000 nodes would be marked as dirty even though only top 2 changed position.

But if i change position of lets say 2 bottom nodes, than only this 2 bottom nodes are sent to server for update (as expected).

In model i have defined "index" property and when i load store no nodes are marked as dirty.

Can someone help me with this?

best regards,
andrej

mitchellsimoens
14 Oct 2013, 2:06 PM
What Ext JS 4.x.x version are you using? Each node caches what sibling nodes it has so I'm wondering if this is triggering the sync.

andrej_marincic
14 Oct 2013, 11:40 PM
Hi Mitchell,

i am using version "4.2.1.883"

You can try sample on this url: http://extjs.dev.abteam.si/index.html

When you move top nodes, al sibblings with higher indexes are marked for update.

best regards,
Andrej

andrej_marincic
21 Oct 2013, 1:59 AM
Hi Mitchell, i can see that in version "4.2.2.1144" you fixed this.

best regards,
andrej