Hi Paul,

You might be spiking because you're trying to set a verticalScrollPosition that is past the end of the dataProvider.  Maybe try some thing like this:

updateComplete="resultsPlaceHolder.scrollToIndex(resultsPlaceHolder.dataProvider.length);"

I didn't test this, but it should work.

-TH
__________________________________

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office
: 866-CYNERGY 


--- In [email protected], "Paul Hastings" <[EMAIL PROTECTED]> wrote:
>
> we have a datagrid that we populate programatically and i'd like to
> auto scroll to the bottom of the grid after each new row is added.
> i've tried using the updateComplete "event" ala
>
> updateComplete=
> "resultsPlaceHolder.verticalScrollPosition =
> resultsPlaceHolder.maxVerticalScrollPosition + 1;"
>
> where resultsPlaceHolder is the datagrid. this works but seems to have
> a nasty side effect of pegging the CPU at 40-50% & more or less
> freezing the app under some circumstances.
>
> not entirely sure of the relationship between this & the CPU spike as
> the datagrid's nested in tab navigator (w/creation policy set to all)
> and happens only when the app uses a custom cursor. but it does happen
> 100% of the time when we use this method to auto-scroll.
>
> any ideas for a workaround?
>
> thanks.
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to