Hey
I am trying to populate a datagrid with displayName attribute from RosterItemVO class
here is the code
var items:Array = chatManager.roster.toArray();
var len:uint = items.length;
arr = new Array[ len ];
for (var i:uint = 0; i < len; ++i)
{
var item:RosterItemVO = items[i] as RosterItemVO;
arr[ i ] = item.displayName;
}
rosterGrid.dataProvider = arr;
its not displaying the data…even i tried new ArrayCollection(arr) also…its not working
In debug mode the loop is running correctly and fetching all the names…
Only its not able to assign the data in arr to dataProvider
any suggestions