tags:

views:

7

answers:

0

Say I have a component pulling remote data into its dataGroup.

I'd like to call ensureIndexIsVisible as soon as the dataGroup finishes on-screen rendering.

But if I do that right after the dataGroup initialization, it throws out an runtime exception. However when I put the ensureIndexIsVisible into a callLater() function then it works properly.

So I'd like to know if there's a non-callLater way (an event perhaps?) to know that dataGroup has finished its rendering, for the purpose of safely calling ensureIndexIsVisible.

Thanks in advance!