radtoolstrip with rad tree view

2 posts, 0 answers
  1. suneetha inturi
    suneetha inturi avatar
    4 posts
    Member since:
    Oct 2009

    Posted 07 Oct 2009 Link to this post

    Hi ,
    Can we have radtreeview with in the radtoolstrip or radmenuitem.We have a requirement saying that in the menu phone contacts will be one menu item under that menu item we need to display phone contacts and groups as tree view with minimize and maximize buttons.If any thing is not clear please ask me.
  2. Martin Vasilev
    Martin Vasilev avatar
    1061 posts

    Posted 12 Oct 2009 Link to this post

    Hi suneetha inturi,

    Thank you for your questions. You can add RadTreeView in a RadToolStripItem by using RadHostItem. Please, consider the following code:

    RadTreeView treeView = new RadTreeView();
    treeView.Nodes.Add(new RadTreeNode("Node1"));
    treeView.MinimumSize = new Size(150, 60);
    treeView.MaximumSize = new Size(150, 60);
    RadHostItem hostItem1 = new RadHostItem(treeView);
    hostItem1.MinSize = new Size(150, 55);
    hostItem1.MaxSize = new Size(150, 55);
    hostItem1.Margin = new Padding(5);
    hostItem1.PositionOffset = new SizeF(0, -3);

    Also you can nest any controls including RadTreeView in a RadMenu by using its RadMenuContentItem. Please find more detailed information and tutorial in our documentation.

    Write me back if you have other questions.

    Kind regards,
    Martin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft R3 2016 release webinar banner
Back to Top