1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    174
    Vote Rating
    2
    Bleak is on a distinguished road

      0  

    Default Event Question

    Event Question


    Is there an event that is fired after a component and all of its child components are rendered? I have a tab panel, with one tab having two GridPanels. I want to fire an event on the parent tab panel when it is fully rendered including its children.

    Thanks,
    Dean.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    afterlayout with {single: true}

  3. #3
    Ext User
    Join Date
    Aug 2009
    Posts
    588
    Vote Rating
    1
    Mike Robinson is on a distinguished road

      0  

    Default


    FYI, and in keeping with Animal's comment above: I have also noticed that sometimes many problems are avoided by adding "delay: 250" (or some such value) to various event handler definitions. This asks ExtJS to present the event very-slightly after it thinks that the event has occurred.

    Some browsers (including The Browser That Must Not Be Named ) seem to have timing-holes, whereby the event handler finds that, "no, the DOM isn't quite ready yet, as it should be." Just a few microseconds later, all is well, but by then it's too late. A very slight delay, far too short for the user to actually notice, has become almost an instinctive practice for me.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    174
    Vote Rating
    2
    Bleak is on a distinguished road

      0  

    Default


    Thanks guys, I appreciate the quick response.

Thread Participants: 2