PDA

View Full Version : About Ext.data.NodeInterface remove() and destroy() methods



mx_starter
26 Mar 2014, 4:09 AM
First of all, not sure if this is a bug or an expecetd behaviour, but anyway:

I have a tree panel with a remote store and proxy associated.

When i use the remove() method on a particular treenode this happens:

1) If using node.remove() - all performs as espected
2) If using node.remove(true) or node.destroy() - the node is removed, but the proxy makes a server call sending the removed node properties as json parameters.

Is that correct?

Ext is 4.2.1.883 (which turns to be quite buggy version...)

israelroldan
2 Apr 2014, 10:15 AM
This is correct, per the docs: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.data.NodeInterface-method-remove, the argument to .remove() signals that the record needs to be destroyed (using the proxy).