Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Jul 2009
    Vote Rating
    JacobGu is on a distinguished road


    Default [DUPE-239] Store.insert does not fire 'datachanged' event.

    The documentation for the Store's datachanged event says as follows:

    * @event datachanged
    * Fires whenever the records in the Store have changed in some way - this could include adding or removing records,
    * or updating the data in existing records
    * @param {} this The data store

    However, the 'insert' method does not fire the event (also called by 'add' method). It should be corrected as follows with red colored code to be added in fix:

        insert : function(index, records) {
            records = [].concat(records);
            for (var i = 0, len = records.length; i < len; i++) {
      , records[i]);
            if (this.snapshot) {
            this.fireEvent('add', this, records, index);
            this.fireEvent('datachanged', this);

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Redwood City, California
    Vote Rating
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough


Similar Threads

  1. Replies: 3
    Last Post: 3 Sep 2010, 6:28 PM
  2. Store not firing Save Event after Insert
    By Bleak in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 10 May 2010, 5:09 AM
  3. Replies: 1
    Last Post: 25 Mar 2010, 12:53 PM
  4. Event datachanged of store
    By anhkpb in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Jul 2009, 2:41 AM

Thread Participants: 1