Removing the root of the tree in an AdvancedDataGrid

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

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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 with the following code.

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

private function callbackGetXMLRequest(event:Event):void {
                        var response:XML = new XML(;
                        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