-
1. Re: Updating dataprovider causes mess when scrolling in AdvancedDataGrid
eprevot123 Feb 16, 2011 2:58 AM (in response to eprevot123)I tried using itemrenderers (mx:Label that override set data) instead of labelFunction, but the problem is the same.
Maybe it comes from the databinding with the XML in my model. But then why would it work before updating the model, and why would it work when I don't scroll ?
-
2. Re: Updating dataprovider causes mess when scrolling in AdvancedDataGrid
eprevot123 Feb 16, 2011 3:08 AM (in response to eprevot123)I also tried to bind the dataprovider to my XML more directly, whithout filetring it :
<mx:AdvancedDataGrid >
<mx:dataProvider>
<mx:HierarchicalData source="{model.myXML.node}"/>
</mx:dataProvider>
<mx:columns>
<mx:AdvancedDataGridColumn labelFunction="{model.labelFunction}"/>
</mx:columns>
</mx:AdvancedDataGrid>But I still have duplicated lines when I scroll in the datagrid after updating the model.
-
3. Re: Updating dataprovider causes mess when scrolling in AdvancedDataGrid
miguel8312 Feb 16, 2011 3:52 AM (in response to eprevot123)can you post your source project? you must be addding the node the array collec
tion more then once??? maybe. I wouldnt be able to tell unless you posted your project and we can take a look at it.
Miguel
-
4. Re: Updating dataprovider causes mess when scrolling in AdvancedDataGrid
eprevot123 Feb 16, 2011 5:44 AM (in response to miguel8312)The XML in the model is correct, it is the ADG that does not display properly the model to which its dataprovider is bound.
I have found a solution, I don't know if it's correct but it solves my problem :
each time I update the XML, I have to call : myHierarchicalCollectionView.refresh();
I thought the binding was enough to update the dataprovider of my ADG but it seems not. Is that a bug ?

