adding labels, textboxes and buttons to radpanelbar

3 posts, 0 answers
  1. Adrian Loughman
    Adrian Loughman avatar
    18 posts
    Member since:
    Nov 2002

    Posted 26 Sep 2007 Link to this post

    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. Adrian Loughman
    Adrian Loughman avatar
    18 posts
    Member since:
    Nov 2002

    Posted 26 Sep 2007 Link to this post

    nevermind. got it using EnableHostControlMode
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 27 Sep 2007 Link to this post

    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
Back to Top