Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-6028 in 4.2.2.1144.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    13
    Vote Rating
    0
    juniorplenty is on a distinguished road

      0  

    Default Button "beforeactivate" doesn't fire

    Button "beforeactivate" doesn't fire


    This is the kind of thing that seems to turn every straightforward, simple task in ExtJS into a scavenger hunt:


    Docs: "Fires before a Component has been visually activated. Returning false from an event listener can prevent the activate from occurring."

    Reality: "Doesn't fire."


    (Side note: there's nothing in there about what the difference is between "visually activate", "render", and "show" is, either.)

    I'd get into more detail but this (docs not matching behavior) is such a common occurrence in ExtJS/SenchaTouch that it doesn't seem worth it. Suggestion: Maybe sencha docs should be less "aspirational" and more "reflective of what's actually implemented", just a thought.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Please use render,*render,show for this. I will check about the documentation. The activate is in regards to container.
    There a special conditions/layouts that need to exist for these to trigger.

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    13
    Vote Rating
    0
    juniorplenty is on a distinguished road

      0  

    Default


    Ok, but why isn't that (special conditions, etc) pointed out in the documentation? It's basically impossible to figure out what can be trusted in the docs or not. The description of that event doesn't mention any mitigating circumstances or special requirements. It says, flat out, that it fires prior to activation. If that's not the case then why is it in there?

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    13
    Vote Rating
    0
    juniorplenty is on a distinguished road

      0  

    Default


    Also - the "show" event says that it only fires when the button is activated via the show() method. Is that always the case? And when I return false when using the render* events, it actually (for some reason) percolates up and keeps the whole view from displaying, so that's out too.

  5. #5
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,927
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    I have created a DOCS improvement request to address this and other related issues.

    Regards,
    Scott.

  6. #6
    Sencha User
    Join Date
    Oct 2012
    Posts
    1
    Vote Rating
    0
    lengvang is on a distinguished road

      0  

    Default Seems not implemented

    Seems not implemented


    As far as I can trace in the code, beforeactivate is implemented in the Ext.layout.container.Card only. Unless the paid version is different.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi