Simple problem with adding RadButtonElement to RadPanelBarGroup

4 posts, 0 answers
  1. Bartek
    Bartek avatar
    1 posts
    Member since:
    Jan 2009

    Posted 21 Jan 2009 Link to this post

    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!
  2. Deyan
    Deyan avatar
    2026 posts

    Posted 22 Jan 2009 Link to this post

    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 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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft R3 2016 release webinar banner
  4. KlaatuMcGoo
    KlaatuMcGoo avatar
    11 posts
    Member since:
    Apr 2007

    Posted 14 Apr 2009 Link to this post

    SUBJECT:  Add button dropdown displays only 4 choices in RadItem Colection Editor.
    CONTEXT:  2009 Q1 WinForms release, VS 2008 SP1, Windows XP SP3.
    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

  5. Deyan
    Deyan avatar
    2026 posts

    Posted 15 Apr 2009 Link to this post

    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,
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top