advanceDatagrid 树形节点
http://apps.hi.baidu.com/share/detail/46836648
排序
//advanceDatagrid 排序
private function myCompare(a:Object,b:Object):int
{
var i:int=3;
if (a == null && b == null)
return 0;
if (a == null)
return 1;
if (b == null)
return -1;
if (a.信息分类 == b.信息分类)
{
if (a.序列 < b.序列)
return -1;
if (a.序列 > b.序列)
return 1;
return 0;
}
return (a.信息分类序列 < b.信息分类序列 ? -1 : 1);
}
分类节点获取打开
var rootObj:Object=gc.getRoot();
var expendNodeObject:Object=ListCollectionView(rootObj).getItemAt(0);
myADG.expandItem(expendNodeObject,true);