Esempio n. 1
0
        protected void BuildTreeView(string zoekString, RadTreeView treeView, RelationView view)
        {
            string xml = new ShareHolders().CreateXMLOrganoTreeView(zoekString, view);
            XElement coloredXML = XElement.Parse(xml);
            ColorFoundNodes(zoekString, ref coloredXML);

            treeView.LoadXml(coloredXML.ToString());

            var nodes = treeView.GetAllNodes();

            if (nodes.Count() > 0 && nodes[0].Text.Equals(zoekString))
                nodes[0].BackColor = Color.Gold;

        }