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?

  • 1300
    Offline posted in reply to Zeshan Manzoor

    Hello Zeshan,

    In order to use ItemTemplate as a type, Infragistics.Web.UI should be included in the .cs file:

    using Infragistics.Web.UI;

    Furthermore after doing some research I found that at this point we do not provide connector lines for WebExplorerBar. What I can suggest is submitting a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com >.

    There are many benefits to submitting a product idea: 

    -          Direct communication with our product management team regarding your product idea.

    -          Notifications whenever new information regarding your idea becomes available.

    -          Ability to vote on your favorite product ideas to let us know which ones are the most important to you.  You will have ten votes for this and can change which ideas you are voting for at any time.

    -          Allow you to shape the future of our products by requesting new controls and products altogether.

    -          You and other developers can discuss existing product ideas with members of our Product Management team. 

    Steps to create your idea:               

    1. Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
    2. Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
    3. Add your product idea and be sure to be specific and provide as much detail as possible. You can provide the photo as well for better description of the requirement. 

    The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.  

    Thank you for contacting Infragistics.

    Regards,

    Monika Kirkova,

    Infragistics

  • 1300
    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