wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

TreeGrid.dataProvider cannot be set more than once, information=RangeError: Index '#' specified is out of bounds. #328

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Assign an ArrayCollection to dataProvider
2. On click event or user event, assign dataProvider another ArrayCollection
3. The array collection can even be empty

What is the expected output? What do you see instead?
Expected to see the new data in the component

What version of the product are you using? On what operating system?
version 2.5-flex3 on windows 7

Please provide any additional information below.
This is for the treeGrid component, seems that the index is not being reset or 
something along those lines, when a new arraycollection is assigned to the 
dataprovider.

I tried a work-around by making a deep copy of the original, which i could then 
use to "reset" the component each time i want to assign a dataprovider. I could 
not get ObjectUtil.copy to work with the component though.

Alternative would be to recreate the component each time.

Original issue reported on code.google.com by avanderw on 2 Sep 2010 at 8:42