I get the following error. Looks like at some sort of internal update. I've
made sure any index I'm passing in is > -1. And in the case I'm testing
it's 0. So internally it's getting a -1 somewhere and I'm not sure.

I'm now using listProvider.itemUpdated(listProvider.getItemAt(index)) where
index is > -1

mx.collections::ListCollectionView/getItemAt at
D:\development\accesso\flex_sdks\apache_flex_4.15.0_air_20\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:525
spark.components::DataGroup/finishVirtualLayout at
/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/DataGroup.as:1403
spark.components::DataGroup/updateDisplayList at
/Users/justinmclean/Documents/ApacheFlex4.15/frameworks/projects/spark/src/spark/components/DataGroup.as:1495
mx.core::UIComponent/validateDisplayList at
D:\development\accesso\flex_sdks\apache_flex_4.15.0_air_20\frameworks\projects\framework\src\mx\core\UIComponent.as:9531
mx.managers::LayoutManager/validateDisplayList at
D:\development\accesso\flex_sdks\apache_flex_4.15.0_air_20\frameworks\projects\framework\src\mx\managers\LayoutManager.as:744
mx.managers::LayoutManager/doPhasedInstantiation at
D:\development\accesso\flex_sdks\apache_flex_4.15.0_air_20\frameworks\projects\framework\src\mx\managers\LayoutManager.as:827
mx.managers::LayoutManager/doPhasedInstantiationCallback at
D:\development\accesso\flex_sdks\apache_flex_4.15.0_air_20\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1188



Kyle McKnight
Senior UI Engineer - Accesso
602.515.1444 (M)

On Mon, Oct 24, 2016 at 3:58 PM, OmPrakash Muppirala <[email protected]>
wrote:

> Calling refresh on the dataprovider is probably what is causing this.
>
> Have you tried using the itemUpdated() function on the dataprovider
> instead?
>
> Here is some info on that:
> http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0b
> f668d2-7fe7.html#WS2db454920e96a9e51e63e3d11c0bf69084-7b64
>
> On Mon, Oct 24, 2016 at 11:53 AM, Kyle McKnight <[email protected]>
> wrote:
>
> > Hey everyone!
> >
> > I have a List that has enough items that one must scroll down to see them
> > all.
> >
> > When clicking an item, it updates the data for that ItemRenderer with a
> > quantity value.
> >
> > When this happens, I'm calling refresh() on the data provider for the
> List
> > but this refreshes then entire List and causes it to scroll back up to
> the
> > top. Is there a way to only update the single ItemRenderer whose data
> > changed? Or is there some other way around this?
> >
> > Thanks!
> >
> > Kyle McKnight
> > Senior UI Engineer - Accesso
> > 602.515.1444 (M)
> >
>

Reply via email to