protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { // check if we're rendering the root node's children if (id == Constants.System.Root.ToInvariantString()) { var tree = new TreeNodeCollection(); var ctrl = new EasyADApiController(); foreach (var g in ctrl.GetAll()) { var node = CreateTreeNode( g.Id.ToInvariantString(), Constants.System.Root.ToInvariantString(), queryStrings, g.Name, "icon-users-alt"); tree.Add(node); } return tree; } // this tree doesn't support rendering more than 1 level throw new NotSupportedException(); }
protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { // check if we're rendering the root node's children if (id == Constants.System.Root.ToInvariantString()) { var tree = new TreeNodeCollection(); var ctrl = new EasyADApiController(); foreach (var g in ctrl.GetAll()) { var node = CreateTreeNode( g.Id.ToInvariantString(), Constants.System.Root.ToInvariantString(), queryStrings, g.Name, "icon-users-alt"); tree.Add(node); } return(tree); } // this tree doesn't support rendering more than 1 level throw new NotSupportedException(); }