DataGrid dataProvider is not getting data reliably
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
grid.dataProvider = value;
where grid is the DataGrid that looks like this:
ProjectPointDataGrid is the actual DataGird class with the following code
override public function set dataProvider(value:Object):void
super.dataProvider = value;
dataProviderChanged(); // will be running against empty
The reason I am listening to CollectionEvent event is because when
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.