2 Jan 2014 5:35 PM #1
beforeanything api. where to listen for tree store events?
Have a TreePanel+TreeStore using ExtDirect
This allows me to stuff a payload into extraParams before load:
I have a feeling there is a better way to intercept/listen here.
I would like to add some extraParams for every CRUD call on this proxy/store/model/tree/provider.
Is there a single point I can listen, or do I need to chase down beforecreate, beforeupdate and beforeremove ?
Thank you in advance.
31 Jan 2014 3:23 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Under the Direct hood it uses Ext.Ajax so to have a global catch all you could listen to the beforerequest event on it and parse the data Ext.Ajax was given.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.