Jay Roy
asked on
set value to children
hi guys
i have this code
now i want to set the days to listItem's children like this
thanks
i have this code
if(pair.length == 2){
var status:String = pair[0]; //will show CEO
var [b]days[/b]:Object = pair[1]; //will show a number
}
now i want to set the days to listItem's children like this
listItems[i][0].data.children[0].children[0].children[0].[b]actualDays[/b]= [b]days[/b];
but actualDaysis not getting updated. Will the above line work?thanks
ASKER
but why do i need Array
I just need to set the days value from var days:Object = pair[1]; to the actualDays property
like this
I just need to set the days value from var days:Object = pair[1]; to the actualDays property
like this
listItems[i][0].data.children[0].children[0].children[0].actualDays= days;
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
anyhelp will be greatly appreciated
https://www.experts-exchange.com/questions/27408496/getting-x-and-y-position-in-advanced-datagrid.html
anyhelp will be greatly appreciated
https://www.experts-exchange.com/questions/27408496/getting-x-and-y-position-in-advanced-datagrid.html
Example:
var array:Array = [{CEO:111}, {ENG:222}, {SALES:333}];
convert to
var array:Array = [{status:CEO, days:111}, {status:ENG, days:222}, {status:SALES, days:333}];
Now in your DataGrid you can create two columns status and days and data will come without any problems