PDA

View Full Version : [SOLVED] Observer event load of Store



Perfect Lion
15 Oct 2009, 8:14 AM
Hi staff,

I need observing the event "load" of data.Store for order to manipulate the data that are coming before any other load.

How can I make this check?

Ex:



Ext.data.Store.load = function() { alert('Observer') };

Grid1 = Ext.data.JsonStore({ ... })
Grid2 = Ext.data.JsonStore({ ... })

// out "Observer"
// out "Observer"


I do not want to be putting a listener for each JsonStore

Animal
15 Oct 2009, 9:54 AM
You want to listen for loads on all Stores that you create?

http://www.extjs.com/deploy/ext-3.0.0/docs/?class=Ext.util.Observable&member=Observable.observeClass

Perfect Lion
15 Oct 2009, 11:25 AM
Thank Animal....
Is solved my problem ;)