Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
130
Add Connector lines in web explorer bar and add web data tree as a child of group in web explorer bar
posted

I have 2 questions

1) I want to add connector lines to hierarchy of web explorer bar as we can add connector lines in a web data tree

2) I want to add web data tree as a child of group in web explorer bar

How can I achieve both the goals?

Parents
  • 1320
    Offline posted

    Hello Zeshan,

    After investigating this further, I determined that your requirement regarding adding WebDataTree as an item in WebExplorerBar group could be achieved by creating an ExplorerTemplate class, where the WebDataTree is defined and adding itemTemplate with a template - the created class. The itemTemplate id should be set to the ExplorerBarItem “TemplateID” property:

    protected void WebExplorerBar1_Init(object sender, EventArgs e)

        {

            ExplorerBarGroup group = new ExplorerBarGroup();

            group.Text = "WebDataTree";

            this.WebExplorerBar1.Groups.Add(group);

            ExplorerBarItem item = new ExplorerBarItem();

     

            ItemTemplate it = new ItemTemplate();

            it.TemplateID = "templateId";

     

            item.TemplateId = "templateId";

     

            ExplorerTemplate et = new ExplorerTemplate();

            it.Template = et;

            WebExplorerBar1.Templates.Add(it);

            group.Items.Add(item);       

        }

        public class ExplorerTemplate : ITemplate

        {

            public void InstantiateIn(System.Web.UI.Control container)

            {

                WebDataTree webDataTree1 = new WebDataTree();

                DataTreeNode rootNode = new DataTreeNode();

                rootNode.Text = "Root";

                webDataTree1.Nodes.Add(rootNode);

                DataTreeNode childNode = new DataTreeNode();

                childNode.Text = "Child Node";

                rootNode.Nodes.Add(childNode);

                webDataTree1.EnableConnectorLines = true;

                container.Controls.Add(webDataTree1);

            }

        }

    Regarding your second requirement, currently we do not provide the functionality to add connector lines to the WebExplorerBar items. What I can suggest is logging a new product idea on our ideas site. This will give you the opportunity to communicate directly with our developers and get notifications when new information regarding your issue is available. When logging your idea be sure to be specific and provide as much details as possible.

    Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,

    Monika Kirkova,

    Infragistics

    WebExplorerBarItemWebDataTree.zip

Reply Children
No Data