노드가 열려있는 advanceddatagrid의 각 행에 대한 데이터를 가져와야합니다. 예를 들어AdvancedDatagrid 열린 잎/나무의 각 행을 반복하십시오.
, 내 ADG는 다음과 같습니다
+ Science
- Math
- Passed
John Doe | A+ | Section C
Amy Rourke | B- | Section B
- Failed
Jane Doe | F | Section D
Mike Cones | F | Section D
- English
+ Passed
+ Failed
- History
+ Passed
- Failed
Lori Pea | F | Section C
나는 열린 노드 얻기 위해 다음 코드를 사용하여 시도
: 객체를 검사 할
var o:Object = new Object();
o = IHierarchicalCollectionView(myADG.dataProvider).openNodes;
을하지만, 다음 코드를 수행 :
Alert.show(ObjectUtil.toString(o), 'object inpsection');
나를 제공합니다 :
어떤 제안이 매우 극명하게 될 것이다Math | Passed | John Doe | A+ | Section C
Math | Passed | Amy Rourke | B- | Section B
Math | Failed | Jane Doe | F | Section D
Math | Failed | Mike Cones | F | Section D
History | Failed | Lori Pea | F | Section C
:
(Object)#0
Math (2)
children = (mx.collections::ArrayCollection)#2
filterFunction = (null)
length = 2
list = (mx.collections::ArrayList)#3
length = 2
source = (Array)#4
[0] (Object)#5
children = (mx.collections::ArrayCollection)#6
filterFunction = (null)
length = 2
list = (mx.collections::ArrayList)#7
length = 2
source = (Array)#8
[0] <Table>
<Name>John Doe</Name>
<Grade>A+</Grade>
<Section>Section C</Section>
</Table>
[1] <Table>
<Name>Amy Rourke</Name>
<Grade>B-</Grade>
<Section>Section B</Section>
....
...
..
는 기본적으로, 난 그냥 저를 줄 것이다 객체 또는 배열 또는 XMLList를 작성해야합니다. 감사합니다