0
我正在嘗試使用AdvancedDataGrid顯示一些分組數據。通常flex會在「樹視圖」中顯示這個文件夾圖標代表組。我需要根據對象中的整數ID字段對數據進行分組,但我希望文件夾圖標的標籤在我的對象中顯示groupName字段。在AdvancedDataGrid中更改組標籤
這裏有一個小例子:
{groupName: group1, ID: 1234}
{groupName: group2, ID: 5678}
<mx:grouping>
<mx:Grouping label="Group"> <--- The label of the whole column
<mx:GroupingField name="ID">
</mx:Grouping>
</mx:grouping>
結果輸出:
=== Group ===
+ 1234
- child
- child
+ 5678
...
但我真的很想輸出:
=== Group ===
+ group1
- child
- child
+ group2
...
如果任何人有我想任何提示欣賞它。
- Dan