1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    75
    Vote Rating
    1
    A.Rothe is on a distinguished road

      0  

    Default When I can access Window.getHeader().getTools() ?

    When I can access Window.getHeader().getTools() ?


    Hi,

    I have seen in the code, that Window.initTools() is called during onRender(). Which is the earliest time, I can access Window.getHeader().getTools() and the call will not return an empty list? I have tested it with Events.Attach, but is it possible to get the information before this event?

    Thanks
    Andre

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    At the end of render (which calls onRender), an Events.Render should be fired, indicating that the widget is now rendered. Attach fires every time the widget is attached to the document, which could happen multiple times. From my quick read of the code, I'm not entirely sure why the tools list isn't init'd before Render, but at least from a semantic point of view, Events.Render is more correct here than Events.Attach.

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Leipzig, Germany
    Posts
    75
    Vote Rating
    1
    A.Rothe is on a distinguished road

      0  

    Default


    Thank you, I have changed it and it works.

Thread Participants: 1

Tags for this Thread