| Issue 30: | help me ro create daynamic a tree | |
| 1 person starred this issue and may be notified of changes. | Back to list |
mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 9
list = (mx.collections::ArrayList)#1
length = 9
source = (Array)#2
[0] (Object)#3
category_id = "8"
is_active = "1"
level = "3"
name = "Cell Phones"
parent_id = 13
position = "8"
[1] (Object)#4
category_id = "12"
is_active = "1"
level = "3"
name = "Cameras"
parent_id = 13
position = "12"
[2] (Object)#5
category_id = "15"
is_active = "1"
level = "3"
name = "Computers"
parent_id = 13
position = "15"
[3] (Object)#6
category_id = "29"
is_active = "1"
level = "4"
name = "Hard Drives"
parent_id = 15
position = "3"
[4] (Object)#7
category_id = "30"
is_active = "1"
level = "4"
name = "Monitors"
parent_id = 15
position = "4"
[5] (Object)#8
category_id = "31"
is_active = "1"
level = "4"
name = "RAM / Memory"
parent_id = 15
position = "5"
[6] (Object)#9
category_id = "32"
is_active = "1"
level = "4"
name = "Cases"
parent_id = 15
position = "6"
[7] (Object)#10
category_id = "33"
is_active = "1"
level = "4"
name = "Processors"
parent_id = 15
position = "7"
[8] (Object)#11
category_id = "34"
is_active = "1"
level = "4"
name = "Peripherals"
parent = 15
position = "8"
uid = "CE6F58A1-8B04-CD43-282A-1F43239D9E56"
sort = (null)
source = (Array)#2
this array collection convert daynamicaly to this type of array collection
condition is
parent category level == 3
child category is level==4 && parent_id == category_id
var tmp:ArrayCollection=new ArrayCollection;
tmp.addItem({
Name:'ACCOUNTING', Key:10, isBranch:true, children:[
{Name:'WARD', ShowKey:7521, draggable:true, parentKey: 10},
{Name:'JONES', ShowKey:7566, draggable:true, parentKey: 10},
{Name:'SCOTT', ShowKey:7788, draggable:true, parentKey: 10},
{Name:'KING', ShowKey:7839, draggable:true, parentKey: 10},
{Name:'JAMES', ShowKey:7900, draggable:true, parentKey: 10}
]
});
Dec 22, 2009
Project Member
#1
marc.hug...@gmail.com
Status:
Invalid
|