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 ?
I also tried to bind the dataprovider to my XML more directly, whithout filetring it :
But I still have duplicated lines when I scroll in the datagrid after updating the model.
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.
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 ?