Link to home
Start Free TrialLog in
Avatar of RenAndStimpy
RenAndStimpyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Flex GroupingCollection2 with Multiple GroupingFields

Hi,

I've built into my flex 4.5 app an advanced datagrid in tree view with data coming from sql in a flat array collection.  My array collection has then been passed into a groupingCollection2 with 2 GroupingFields to build the tree structure.  Trouble is, some of my categories have 1 sub cat and some have 2.  This means that the ones with 1 sub cat that I just want to display in the tree as a 'leaf' and not a 'branch' display themselves as a 'branch' with a 'leaf'

As per the image below where the category 'Brick Building Mortar' has a one level sub cat so i'd like the 'Colour 1' etc displaying as a leaf.

All this is done in actionscript.

User generated image

I hope this make sense!
Avatar of dgofman
dgofman
Flag of United States of America image

You can create itemRenderer or override HistoricalData class isBranch method
Avatar of RenAndStimpy

ASKER

Thanks for you response.

Would it be possible for you to comment further on overriding HistoricalData class isBranch method and how I would actually do this.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of dgofman
dgofman
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial