1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    17
    Answers
    1
    Vote Rating
    0
    Sondergard is on a distinguished road

      0  

    Default Answered: Is there a Ext.Container render-complete callback?

    Answered: Is there a Ext.Container render-complete callback?


    I need to know when a specific view has rendered, is there a callback for this? just like body onload...

  2. activate might work for you? activate is fired when a cardslide component gets focus, opposite is the deactivate event.
    they have deprecated the onRender method and i guess thats why this.on('render':...) aint working.

    try using 'painted' event, should work for now (however i believe this may be subject to change in final release)

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    12
    Answers
    2
    Vote Rating
    0
    logicseeds is on a distinguished road

      0  

    Default onRender or onPainted event?

    onRender or onPainted event?


    activate might work for you? activate is fired when a cardslide component gets focus, opposite is the deactivate event.
    they have deprecated the onRender method and i guess thats why this.on('render':...) aint working.

    try using 'painted' event, should work for now (however i believe this may be subject to change in final release)

  4. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    17
    Answers
    1
    Vote Rating
    0
    Sondergard is on a distinguished road

      0  

    Default


    In this particular situation, the view in question is a Ext.panel and the event onRender is the only one working.

    You say onRender is deprecated, where can you see that? I can't even find render or painted events in the documentation http://docs.sencha.com/touch/2-0/#!/api

  5. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    12
    Answers
    2
    Vote Rating
    0
    logicseeds is on a distinguished road

      0  

    Default


    if you define your own extension of a Ext.Panel, then override the onRender method with your own - console output is
    "DEPRECATED blah blah, put your code in initialize instead"

    i believe this is wrong:
    PHP Code:
    myPanel.on( {
      
    "onRender" : function() {}
    }); 
    as what youre basically doing is creating a hook to a function - and not an event. The internal eventhandler calls your panels function onRender - and therefore you receive a notice of it in listener. Best practice is to hook onto event instead.

    I saw a developer suggest using component#painted event, have not found documentation for this but think it is one of the basic structures, something similar to Container or Component or AbstractElement or like. Browse through the source code for fireEvent / fireAction.

Thread Participants: 1

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