Home / Community & Support / Knowledge Base / RadControls for WinForms / PanelBar / Adding controls to RadPanelBar

Adding controls to RadPanelBar

Article Info

Rating: 5

 

Article information

Article relates to

r.a.d controls for WinForms

Created by

Boyko Markov, Telerik

Last modified

February, 12, 2007

Last modified by

Boyko Markov, Telerik


 
HOW-TO
Add controls to RadPanelBar

SOLUTION
  1. Drag and drop a new RadPanelBar instance from the VS2005 toolbox on your Windows form
  2. Add RadPanelBarGroupElements to the RadPanelBar:
    You can add new groups to the RadPanelBar using the Items collection of the control. This can be done either in design time or programmatically.  If you want to add groups in design time you can use the smart tag of the RadPanelBar and then click on Edit Items. Programmatically it can be done by writing:
     
    RadPanelBarGroupElement group = new RadPanelBarGroupElement(); 
    RadPanelBar.Items.Add( group );  

     
  3. Select a group of the RadPanelBar
  4. Set the EnableHostControlMode property of the selected group to true.
  5. Drag and Drop a control into the selected group's inner area

Comments

If you'd like to comment on this KB article, please, send us a Support Ticket.
Thank you!

Please Sign In to rate this article.