Removing the root of the tree in an AdvancedDataGrid

PMembrey
PMembrey used Ask the Experts™
on
How do you remove the root of the tree when an advanced datagrid is used?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Hello again,

Do you want to avoid the root element not showing in tree?
So you want to show the groups directly as 3 groups if it has 3 subgroups?

Just change callbackGetXMLRequest() function in example  http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Flex/Q_25093214.html?cid=1131#a26435062 with the following code.

We are just loading the .children() of the xmllist as dataprovider.

Thanks,
Vindys
private function callbackGetXMLRequest(event:Event):void {
                        var response:XML = new XML(event.target.data);
                        userList = response.Users;
                        adg.dataProvider=new HierarchicalData(userList.children());
                    }

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial