Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    462
    Vote Rating
    41
      0  

    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:
    Code:
    this.store.mon(this,'beforeload',this.onBeforeStoreLoad,this)
    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
    Location
    Gainesville, FL
    Posts
    39,753
    Vote Rating
    1304
      0  

    Default

    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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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