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

adding labels, textboxes and buttons to radpanelbar

2 Answers 120 Views
Panelbar (obsolete as of Q2 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.
Adrian Loughman
Top achievements
Rank 1
Adrian Loughman asked on 26 Sep 2007, 08:43 PM
Hi All

I was wondering if anyone could help me.
I am trying to add 2 radlabels, 2 radtextboxes and a radbutton to a radpanelbar.

Does anyonehaveany code examples that could help me?

Thanks in advance

Adrian Loughman

2 Answers, 1 is accepted

Sort by
0
Adrian Loughman
Top achievements
Rank 1
answered on 26 Sep 2007, 08:56 PM
nevermind. got it using EnableHostControlMode
0
Boyko Markov
Telerik team
answered on 27 Sep 2007, 11:55 AM
Hi Adrian Loughman,

If you would like to use the regular RadItems in your RadPanelBar you could simply use the Items collection of RadPanelBarGroupElement. You could use the following as a guide:

1. Drag and drop a new instance of RadPanelBar on your Form
2. Add a few groups using the Items collection of your RadPanelBar
3. Select a group and then use its Items collection to add elements.

The purpose of EnableHostControlMode is to allow you to add any controls in your groups. If you need only basic items as RadButtonElement, RadLabelItem, etc. I suggest you to use the Items collection of RadPanelBarGroupElement to add what you need.

Please tell me if I could be of any further assistance.

Best wishes,
Boyko Markov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Adrian Loughman
Top achievements
Rank 1
Answers by
Adrian Loughman
Top achievements
Rank 1
Boyko Markov
Telerik team
Share this question
or