Results 1 to 4 of 4

Thread: Events in columns after DOM is created?

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
      0  

    Default Unanswered: Events in columns after DOM is created?

    I need an event, which gets fired after all renderer method return values have been rendered on page.

    My renderer returns a string, which is a div definition

    return '<div id="MyColumn' + record.id + '" />';

    after the page is done I can find these with the browsers dev-tools, but when I use the render or afterrender events of this column object, to "Ext.get()" these divs, they aren't there when it fires.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    249
      0  

    Default

    What if you used the boxready event with a buffer of 50ms?

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    118
    Answers
    6
    Vote Rating
    0
      0  

    Default

    Timeouts are a bad idea.

  4. #4
    Sencha User
    Join Date
    Oct 2009
    Posts
    95
    Answers
    3
    Vote Rating
    2
      0  

    Default

    If you do it in your Store's load event, as far as I can see, it will trigger after all the rows have been rendered. Give it a try...

Posting Permissions

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