显示高级数据网格分组中的项目数

时间:2011-10-19 13:47:27

标签: flex advanceddatagrid

我的ADG显示如下数据:

1st Floor
  Administration
    John 
    Mary
    Johnson
    Cole
    Roger
    Margo
  Accounting
    Mel
    Liza
    Johann
    Jackson
2nd Floor
  IT
    Blake
    Steve
    Cherry
    Aries
  HR
    Peter
    Paul
    Mary
3rd Floor
  Management
    Henry
    Randy
    Dave
    Darlene

我需要为每个分组修改什么,以便每个组显示项目数,即

1st Floor (10)
  Administration (6)
    John 
    Mary
    Johnson
    Cole
    Roger
    Margo
  Accounting (4)
    Mel
    Liza
    Johann
    Jackson
2nd Floor (7)
  IT (4)
    Blake
    Steve
    Cherry
    Aries
  HR (3)
    Peter
    Paul
    Mary
3rd Floor (4)
  Management (4)
    Henry
    Randy
    Dave
    Darlene

感谢您的投入。

感谢。

1 个答案:

答案 0 :(得分:0)

为列编写标签函数并计算labelfunction中的计数