the filter is removing Items indeed, to solve the problem , I set the verticalScrollPosition to 0 before applying the refresh() method.
To have it assigned to a single dataProvider , it's not a problem to use this kind of workaround but I think this should be handle by the listclass.
João Fernandes
Is the filter removing items? So now your collection would appear to have less items than there were earlier? That'd be a bug in the list class, it should be able to handle the reduction. Maybe you can detach the dataProvider, filter it, and then re-assign it?
Matt
From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of João Fernandes
Sent: Friday, August 18, 2006 9:39 AM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] RTE in List when filtering ArrayCollection
Hi everyone,
I'm having this error
TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::List/::adjustVerticalScrollPositionDownward()
at mx.controls::List/mx.controls:List::configureScrollBars()
at mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDisplayList()
at mx.controls::List/mx.controls:List::updateDisplayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()
When applying a refresh() on an arrayCollection (using filterFunction) used inside a listbox. If the list is positioned at the beginning everything works fine but if I scroll down on my list and apply the refresh this error is thrown.
Any Ideas?
Thanks,
João Fernandes
__._,_.___
--
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
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- RE: [flexcoders] RTE in List when filtering ArrayCollectio... Matt Chotin
- Re: [flexcoders] RTE in List when filtering ArrayColl... João Fernandes
Reply via email to