Results 1 to 2 of 2

Thread: beforeanything api. where to listen for tree store events?

  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2010
    Vote Rating

    Default 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:
    But it does not fire for "beforeremove".

    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.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    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
    Learn BBCode and use it!

    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.

    Need more help with your app? Hire Sencha Services

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts