1. #1
    Sencha Premium Member
    Join Date
    Oct 2011
    Location
    Paris, France
    Posts
    187
    Vote Rating
    3
    Answers
    5
    olouvignes is on a distinguished road

      0  

    Default Answered: What replaced `afterrender` event ?

    Answered: What replaced `afterrender` event ?


    In ST2.0, i can't find any render/afterrender event (on a component or a textfield).
    How can this be done in 2.0 ?

  2. Try 'painted' for now.

  3. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Answers
    17
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Try 'painted' for now.

  4. #3
    Sencha User
    Join Date
    Apr 2008
    Location
    Buenos Aires, Argentina
    Posts
    67
    Vote Rating
    1
    Answers
    1
    elmasse is on a distinguished road

      0  

    Default


    Painted should work.. I guess

  5. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    81
    Answers
    102
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Quote Originally Posted by elmasse View Post
    Painted should work.. I guess
    D'oh! I was listening for 'paint'.

    Elmasse, please mark Jamie's question as answered.

  6. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    2
    Vote Rating
    0
    Leonardo_redmond is on a distinguished road

      0  

    Default "painted" is not fired in DataView.

    "painted" is not fired in DataView.


    Hi.

    I've tried to fire "afterrender" event on dataview(now using template) and I see this post. And I've tried using "painted".

    But I can't get both "painted" and "afterrender" event.

    How can I solve this problem?

  7. #6
    Sencha User nareshkokkula's Avatar
    Join Date
    Feb 2012
    Posts
    43
    Vote Rating
    -3
    Answers
    1
    nareshkokkula can only hope to improve

      0  

    Default


    Code:
    listeners:{
    order: 'after',
    painted :  function() {}
    }