View Full Version : DataProxy Event Handler / Listener

8 Mar 2010, 3:01 PM

I am trying to call a custom function when the script calls my DataProxy URL, I added store.on('load', function()) and store.on('update', function()), couldn't find anything related to adding or deleting a record.

On which level it is recommended to add a new Listener? should I do this to the proxy or the store or maybe grid? what standard events do store, grid or proxy have? is it just DOM events or do they have special events related to their functionality?

Too many questions.


8 Mar 2010, 3:16 PM
hi bh129,

look into the api, like

for the store. scroll down and at the end of the page you will find a section called "events", where all available by default - events are listed. store for example has

add : ( Store this, Ext.data.Record[] records, Number index )
Fires when Records have been added to the Store

kind regards,

8 Mar 2010, 3:27 PM
I knew I am missing something very obvious, thanks.....