Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Seperate Parent Field & Hirarchy Field in AdvancedDataGrid - please help

Avatar of YossiBa
YossiBa asked on
Apache Flex
15 Comments1 Solution593 ViewsLast Modified:
Hi,
I am creating a TreeGrid using the AdvancedDataGrid in Flex 3.

The function that build my group columns is :

private function setGroupedColumns():void
{


var groupingCollection:GroupingCollection=new GroupingCollection()

var grouping:Grouping=new Grouping()
var groupingField:GroupingField

grouping.fields=new Array()

// Set the parents columns
var parentIds:ArrayCollection = properties.parantIdColumns as
ArrayCollection;

// Setting the Parent field
groupingField=new GroupingField("parent");
grouping.fields.push(groupingField)


groupingCollection.source=ArrayCollection(remoteDP)

groupingCollection.grouping=grouping
groupingCollection.refresh()
myADG.dataProvider=groupingCollection
}


Here I get a Tree and "parent" field as its parent.
If I push more fields to
grouping.fields.push(groupingField)
I get more sub childrens.
Thats not what I need.


How can I set parent field to stay the parent (in the background) but
to set different field(column) to be the hirarchy column (with the
folder icon or arrow).

The parent column should look as a normal column but the hirarchy
will be based on its data. the Tree appearance will be shown in a
different field.

Can I do it?

Thanks

Jo
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynxFlag of Belgium imageSr. Software engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 15 Comments.
See Answers