Can't Put Anything in My Panelbars

6 posts, 0 answers
  1. Andrew Bromfield
    Andrew Bromfield avatar
    20 posts
    Member since:
    Dec 2005

    Posted 06 Jan 2007 Link to this post

    Hello Again,

    This time my problem lies with the PanelBar's ContentPanel. I set the EnableHostControlMode property (in the Behavior section) to True as im told enabling me to drag elements into each panel. The only problem is that the Container that appears when i set EnableHostControlMode to True, wont dock to the size of it's parent panel.  It stays at at 50x50px.

    Even stranger is that for my 1st item in the panelBar, the ContentPanel's location is 0,0 but over the bar itself. So it doesn't sit in its intended space properly. The ContentPanel in the 2nd Item is located at the proper 0,0 but still wont resize properly despite all efforts.

    Is this a serious bug, or am I just missing something incredibly simple?
  2. Chris
    Admin
    Chris avatar
    221 posts

    Posted 08 Jan 2007 Link to this post

    Hello Andrew,

    The default size of the ContentPanel is set to 50x50px. The ContentPanel represents a default panel with AutoSize property set to true and its AutoSizeMode property is set to grow and shrink. You can drag a control on that 50x50px area and then you can manually change the location and the size of the control which you had put on the content  area and the ContentPanel will grow or shrink depending on the size and location of that control. Normally you can’t resize the content area because its size is set dynamically by the ContentPanel.
    This behavior will be fixed for the SP1 of r.a.d.controls for WinForms which is scheduled for the 15th of January.
    All the best,
    Chris
    the telerik team
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Andrew Bromfield
    Andrew Bromfield avatar
    20 posts
    Member since:
    Dec 2005

    Posted 09 Jan 2007 Link to this post

    Thanks for the reply and insight, only problem is it didnt address the problem with the 1st content panel sitting on top of the Bar where each panel's title text is displayed. Also my content panel was only scaling to about width of its parent form in its normal state which is 800px X 400px. So in other words, it would auto scale until I maximize my program (1680x1024). I guess I should just wait the 6 days for SP1 and keep my fingers crossed that all these fixes are included?
  5. Chris
    Admin
    Chris avatar
    221 posts

    Posted 10 Jan 2007 Link to this post

    Hello Andrew,

    You can add ContentPanels by setting the EnableHostControlMode property of any group to true. These ContentPanels will fit to the available space in the ContentArea of the current group and you won't be able to resize them manually, because their size and location will be depending on the size and location of the group.
    For Example: If you resize your RadPanelBar control then your ContentPanels will be resized too.
    We plan to enhance this behavior and you'll be able to see the result in SP1.

    Best wishes,
    Chris
    the telerik team
  6. Matt
    Matt avatar
    1 posts
    Member since:
    Oct 2006

    Posted 11 Jun 2007 Link to this post

    I cannot get this to work.
    I have a panel bar. One of the goupd I've set EnableHostControlMode on.
    I drag a RadListBox into the little rectangle and it appears squashed with two scrollbars.
    I add a couple of list items via the items collection.

    The list always appears squashed and small. It never sizes to the full size of the panelbargroup. I've tried all variations and combinations of docking, sizing I can think of.

    What am I to do?
    (Version is Telerik RadControls for WinForms Q1 2007)

    Matthew Phillips
  7. Boyko Markov
    Admin
    Boyko Markov avatar
    610 posts

    Posted 11 Jun 2007 Link to this post

    Hi Matt,

    Could you please send us a sample project which demonstrates that behavior? You can do so in a new support ticket. We will also appreciate some additional information about the panel bar style you currently use.

    I would suggest downloading the Q1 SP1 version of RadControls for WinForms as we have fixed many issues related to RadPanelBar since the Q1 release.

    Anyway, it is normal that your list box is not sized to the full size of the panelbar group, because you could put more controls in the group's panel.

    I'll be looking forward for your reply and your sample project.


    Greetings,
    Ray
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready