flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark goldin <markzolo...@gmail.com>
Subject DataGrid dataProvider is not getting data reliably
Date Sat, 03 Jun 2017 11:09:05 GMT
I have the following situation. A popup with a class based on vBox with
dataGrid in it.
Code in Popup looks like this:

Where ProjectPointsAlarmManagement is my vBox classs with the grid.
In that class I have the following function:
public function set dataProvider(value:Object):void
if (value)
grid.dataProvider = value;
where grid is the DataGrid that looks like this:
<view:ProjectPointDataGrid id="grid"/>

ProjectPointDataGrid  is the actual DataGird class with the following code
for dataProvider:
override public function set dataProvider(value:Object):void
if (value)
super.dataProvider = value;
                dataProviderChanged(); // will be running against empty
The reason I am listening to CollectionEvent event is because when
*value *becomes
non null the dataProvider still has no data and code
in dataProviderChanged function that I need to execute is not working

My solution is working, at most part. It takes some clicking to to realize
that sometimes it's not getting into dataProviderChanged function.

Any idea for code refactoring?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message