Results 1 to 8 of 8

Thread: events order

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User lordmax's Avatar
    Join Date
    Jul 2009
    Location
    Turin, Italy
    Posts
    7
    Vote Rating
    0
      0  

    Default events order

    Hi to all

    There is a way to know the exact events order fired by extjs?

    obviously afterrendere came after render but show?
    It seem that show happens after afterrender but I've no idea of the correct order of events.

    Thanks

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,607
    Vote Rating
    59
      -1  

    Default

    Show happens when a Component is shown.

    And obviously, a Component has to be rendered before it is shown. Stands to reason don't you think?

  3. #3
    Sencha User lordmax's Avatar
    Join Date
    Jul 2009
    Location
    Turin, Italy
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by Animal View Post
    Show happens when a Component is shown.

    And obviously, a Component has to be rendered before it is shown. Stands to reason don't you think?

    Ohhh Yeah

    But my answer is: there is an events order, what it is?

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    118
      1  

    Default

    The event order isn't documented AFAIK.

    You either have to read trough the code to find the event order or simply attach event handlers and try it out.

  5. #5
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,607
    Vote Rating
    59
      -1  

    Default

    Why is it an issue?

  6. #6
    Sencha User jojopad's Avatar
    Join Date
    Aug 2012
    Location
    Manila, Philippines
    Posts
    6
    Vote Rating
    4
      2  

    Default

    Quote Originally Posted by Condor View Post
    The event order isn't documented AFAIK.

    You either have to read trough the code to find the event order or simply attach event handlers and try it out.
    Same sentiment here (surprisingly 3 years have passed since the original post and not a single documentation can be found). A short official documentation on this would be extremely helpful for users so they can get up to speed on how the event order sequence are expected to work.
    It's not what you think. It's how you think.

  7. #7
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    4
    Vote Rating
    0
      0  

    Default I 100% agree with you.


    Lack of such information make new users stop using EXTJS.

  8. #8
    Sencha User
    Join Date
    Aug 2015
    Location
    Beit-El, Israel
    Posts
    6
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by lordmax View Post
    ...
    It seem that show happens after afterrender but I've no idea of the correct order of events.

    Thanks
    With G-ds assistance

    It seems that "render" events get fired in creation of component,
    and "show" events get fired in activating show() function.

    As you run your code and panels get rendered,
    "render" events get fired, not "show".
    If you explicitly used show function to show a Window, for instance, only then, "show" events get fired.

    In documentation (show event) it says:
    "Fires after the component is shown when calling the show method"

Posting Permissions

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