flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Overkamp (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLEX-33794) #1502 Timeout Laying out spark DataGrid on dataProvider refresh() after scrolling
Date Tue, 08 Oct 2013 07:11:44 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13788994#comment-13788994
] 

Stefan Overkamp edited comment on FLEX-33794 at 10/8/13 7:11 AM:
-----------------------------------------------------------------

No, I can't. The problem is related to my DataCollection. If I add items to it (like you did
with the ArrayCollection) and dispatch the DataCollectionEvent.FILL_COMPLETE, the problem
is gone.  
If I fill the DataCollection from my service.method the problem occurs. LayoutManager: validateClient
is called over and over again, never ending.
I think the problem may be related to getting the selectedItem (caretSelectedItem) and trying
to ensureCellIsVisible() in Grid.updateCaretForDataProviderChange().
Maybe the items are kind of pending ??

A workaround for the problem: set the dataProvider to null and reassign it after the collection
is filled or use the mx.DataGrid



was (Author: gisworks):
No, I can't. The problem is related to my DataCollection. If I add items to it (like you did
with the ArrayCollection) and dispatch the DataCollectionEvent.FILL_COMPLETE, the problem
is gone.  
If I fill the DataCollection from my service.method the problem occurs. LayoutManager: validateClient
is called over and over again, never ending.
I think the problem may be related to getting the selectedItem (caretSelectedItem) and trying
to ensureCellIsVisible() in updateCaretForDataProviderChange().
Maybe the items are kind of pending ??

A workaround for the problem: set the dataProvider to null and reassign it after the collection
is filled or use the mx.DataGrid


> #1502 Timeout Laying out spark DataGrid on dataProvider refresh() after scrolling
> ---------------------------------------------------------------------------------
>
>                 Key: FLEX-33794
>                 URL: https://issues.apache.org/jira/browse/FLEX-33794
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: DataGrid
>    Affects Versions: Apache Flex 4.10.0
>            Reporter: Stefan Overkamp
>            Assignee: Justin Mclean
>            Priority: Critical
>              Labels: error
>         Attachments: Flex4_10_DataGrid.mxml
>
>
> Having a spark DataGrid bound to a DataCollection (clear.collections.DataCollection)
I get a #1502 Timeout error when I refresh() the Collection but only when I scrolled the DataGrid
and selected an item.
> Going back to Apache Flex 4.9.1 or a mx:DataGrid there is no #1502.
> Exception fault: Error: Error #1502: A script has executed for longer than the default
timeout period of 15 seconds.
> 	at mx.managers::LayoutManager/validateClient()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/LayoutManager.as:948]
> 	at mx.core::UIComponent/validateNow()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:8339]
> 	at spark.components.gridClasses::GridViewLayout/updateDisplayList()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/gridClasses/GridViewLayout.as:1031]
> 	at spark.components.supportClasses::GroupBase/updateDisplayList()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/supportClasses/GroupBase.as:1302]
> 	at spark.components::Group/updateDisplayList()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/Group.as:1178]
> 	at mx.core::UIComponent/validateDisplayList()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:9261]
> 	at spark.components::Group/validateDisplayList()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/Group.as:1100]
> 	at mx.managers::LayoutManager/validateClient()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1041]
> 	at mx.core::UIComponent/validateNow()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:8339]
> 	at spark.components::Grid/ensureCellIsVisible()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/Grid.as:3742]
> 	at spark.components::Grid/updateCaretForDataProviderChange()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/Grid.as:5409]
> 	at spark.components::Grid/dataProvider_collectionChangeHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/Grid.as:5623]
> 	at flash.events::EventDispatcher/dispatchEventFunction()
> 	at flash.events::EventDispatcher/dispatchEvent()
> 	at mx.collections::ListCollectionView/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:1091]
> 	at mx.collections::ListCollectionView/internalRefresh()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:1646]
> 	at mx.collections::ListCollectionView/refresh()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:487]



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message