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

Simple problem with adding RadButtonElement to RadPanelBarGroup

3 Answers 75 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.
Bartek
Top achievements
Rank 1
Bartek asked on 21 Jan 2009, 02:06 PM
Hi, I'm new to RadControls to WinForms and my question is probably very simple.
When I'm trying to add some item (using RadItem Collection Editor) to RadPanelBarGroupElement, after clicking on drop-down arrow on the Add button i see only four elements (RadToggleButtonElement, RadCheckboxElement, RadRadioButtonElement, RadLabelElement). In sample in documentation there is few elements more, particularly RadButtonElement.

Anybody knows, where is the problem?

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 22 Jan 2009, 08:46 AM
Hello Bartek,

Thanks for the question.

Basically, there are two ways to add a RadButtonElement into a RadPanelBar's group:

1. You can do this programmatically. Consider the following code snippet:

RadButtonElement button = new RadButtonElement(); 
button.StretchHorizontally = true
button.Text = "Button"
this.radPanelBarGroupElement2.Items.Add(button); 

This will insert a RadButtonElement into the corresponding RadPanelBarGroupElement.

2. The other way is to enable the Host Control Mode of the group in question. To achieve this, click on the Smart Tag of the RadPanelBarGroupElement (the small black arrow on the top right corner of the group) and activate the EnableHostControlMode checkbox. Now you are able to add any RadControl in this group's panel and modify its behavior with the designer.

I hope this will help you.

Do not hesitate to write back if you need further assistance or have any questions.

Kind regards,
Deyan
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
KlaatuMcGoo
Top achievements
Rank 1
answered on 14 Apr 2009, 02:44 PM
SUBJECT:  Add button dropdown displays only 4 choices in RadItem Colection Editor.
CONTEXT:  2009 Q1 WinForms release, VS 2008 SP1, Windows XP SP3.
DESCRIPTION:
I'm having the same problem, following the example in the help.  The Host Control Mode setting makes no difference.  In the help example, there are 3 PanelBarGroupElements.  The middle one has EnableHostControlMode = False, and the two others have True.  Your product does not work the way the help says it should, the way I assume it did at some point.  I have uploaded my sample project which I created following the help article:  "RadControls for WinForms Q1 2009" > RadPanelBar > "Getting Started" > "Getting Started".  When you get to step 4 in the tutorial and click the Add dropdown button in the "RadItem Colection Editor", it only shows 4 options, not the big list.  So you CAN'T follow the tutorial any further because RadButtonElement is not one of the choices.  I am not afraid to do it programmatically; I have a deadline and am using Telerik to decrease my development time, so I am frustrated.  It should work as documented.

I did not see a way to upload my sample, so you can get it here:  Sample Project

Respectfully,
-James
0
Deyan
Telerik team
answered on 15 Apr 2009, 04:36 PM
Hello James,

Thanks for writing.

I have investigated the case and I have to inform you, that the images which are shown in our Help Documentation are for an older version of RadPanelBar. It seems that we have missed updating these images, and this is the reason for the confusion. We have changed the behavior of the Items Editor of the RadPanelBarGroupElement, so that some element types are not shown currently.

However, I have added the possibility for the user to add these items from the Visual Studio Designer. Since we are releasing Q1 2009 SP1 tomorrow, you can check our website and download the new version which has the fix that you requested.

I am sorry for the inconvenience caused.

Do not hesitate to write back in case of further questions.

All the best,
Deyan
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Panelbar (obsolete as of Q2 2010)
Asked by
Bartek
Top achievements
Rank 1
Answers by
Deyan
Telerik team
KlaatuMcGoo
Top achievements
Rank 1
Share this question
or