You found a bug! We've classified it as EXTJS-9965 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    7
    Vote Rating
    0
    cojack is on a distinguished road

      0  

    Default Missing rejectChanges on TreeStore

    Missing rejectChanges on TreeStore


    Hello,
    There is missing function rejectChanges in TreeStore, but can be easly done by:

    Code:
    this.getStore().tree.flatten().forEach(function(node) { node.reject(); });
    or

    Ext.override(Ext.data.TreeStore, { rejectChanges: function() { this.getStore().tree.flatten().forEach(function(node) { node.reject(); }); }});
    Last edited by cojack; 27 May 2013 at 4:48 AM. Reason: override method added

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,800
    Vote Rating
    167
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.