hello
i have problem.. 2 days i'm searching in doc and googling but can't find solution .. can please somebody help me ?
i have a TreeGrid, connected to store using Direct proxy with api CRUD method calls using JsonRPC
i'm adding new node with this :
Code:
var row = store.getAt(this.rowIndex);
// update row
row.set({ name: 'blablabla'; });
// or insert new child :
row.appendChild({ node });
TreeStore is defined with :
Code:
autoLoad: true,
autoSync: true,
autoDestroy: true,
clearOnLoad: true,
clearRemovedOnLoad: true,
until at server side everythng runs ok, and server returns success:true, everything is OK.. But problem is when server returns exception, so node wasn't added ... i'm catching exception in proxy :
Code:
... proxy code...
listeners: {
exception: function(me, response, operation, eOpts ) {
// display error mesasge that something is wrong
}
}
But .. here starts 2 basic problems :
1/ Node, which i tried to add with row.set(), is still visible in grid tree (even when he was not physically saved at server side - it dissappears only when i reload whole grid.. what i understand about how treegrid works - i need somehow tell to grid to 'remove' this displayed node or at least reload it's parent node)
2/ When i trigger again some update after such unsuccessfull action, which ends with exception on this grid (i edit or add some other node), then store/proxy re-sends again with new request data also data of previous request which endend with exeption .. so istead of :
Code:
{ data of new request }
store sends
Code:
[ {data of old request}, {data of new request} ]
it looks it is still somewhere cached because it didn't ended with success: true, and it is send again and again with any new request .. What is really strange is, that it doesn't work just for appendChild() call .. for row.set(), there is no such issue ...
I'm really desperate 
Any help appreciated..