This is a migrated thread and some comments may be shown as answers.

radtoolstrip with rad tree view

1 Answer 53 Views
Toolstrip (obsolete as of Q3 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
suneetha inturi
Top achievements
Rank 1
suneetha inturi asked on 07 Oct 2009, 09:37 AM
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.
Thanks
Suneetha.

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 12 Oct 2009, 07:25 AM
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);
 
this.radToolStripItem1.Items.Add(hostItem1);
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.
Tags
Toolstrip (obsolete as of Q3 2010)
Asked by
suneetha inturi
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or