-
31 Aug 2010 4:22 AM #1
[DUPE-239] Store.insert does not fire 'datachanged' event.
[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 {Ext.data.Store} this The data store
*/
'datachanged'
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:
Code:insert : function(index, records) { records = [].concat(records); for (var i = 0, len = records.length; i < len; i++) { this.data.insert(index, records[i]); records[i].join(this); } if (this.snapshot) { this.snapshot.addAll(records); } this.fireEvent('add', this, records, index); this.fireEvent('datachanged', this); }
-
31 Aug 2010 9:38 AM #2
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-239] datachanged event not fired after store.add() / store.insert() - (0.92)
By jeroenvduffelen in forum Sencha Touch 1.x: BugsReplies: 3Last Post: 3 Sep 2010, 6:28 PM -
Store not firing Save Event after Insert
By Bleak in forum Ext 3.x: Help & DiscussionReplies: 4Last Post: 10 May 2010, 5:09 AM -
[DUPE-689] 3.2RC1: GroupTab deactivate event doesn't fire for different group
By josh803316 in forum Ext 3.x: BugsReplies: 1Last Post: 25 Mar 2010, 12:53 PM -
Event datachanged of store
By anhkpb in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 16 Jul 2009, 2:41 AM


Reply With Quote