RadGroupBox hide header

4 posts, 0 answers
  1. Kuba
    Kuba avatar
    13 posts
    Member since:
    Aug 2013

    Posted 10 Sep 2013 Link to this post

    I tried to hide header in GroupBox. I changed following properties GroupBoxHeader's:
    Visibility = Collapsed
    Size = 0 ; 0

    Even than I have a white stripe on the top (See attachment).

    Which properties should I change to hide this stripe?

    Thanks for help.

    Kuba
  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 12 Sep 2013 Link to this post

    Hello Kuba,

    Thank you for contacting Telerik Support.

    I confirm this is an issue with our RadGroupBox when its header is collapsed and a child control inside the groupbox is docked to fill. I have logged this issue in our Public Issue Tracking System - PITS. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - PITS issue. I have also updated the Telerik points to your account. Currently, the possible workaround I can propose is:
    public Form1()
    {
        InitializeComponent();
     
        this.radGroupBox1.GroupBoxElement.Header.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
        this.radGridView1.Dock = DockStyle.None;
        this.radGridView1.Location = this.radGroupBox1.Location;
        this.radGridView1.Size = this.radGroupBox1.Size;
        this.radGroupBox1.Resize += radGroupBox1_Resize;  
    }
     
    private void radGroupBox1_Resize(object sender, EventArgs e)
    {
        this.radGridView1.Size = this.radGroupBox1.Size;
    }

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jason
    Jason avatar
    47 posts
    Member since:
    Jan 2013

    Posted 26 Mar 2014 in reply to Dess Link to this post

    I can't get to the PITs ticket for this (assume you've changed the system) but can I add some further issues to this.

    Basically, docking to fill completely ignores any changes to the header. It assume a default of a 24 high header at the top and docks to that.

     - If you change the theme to Metro, which has a bigger header, the docked child overwrites the bottom of the header
     - If you change the header in Visual Builder and make it larger, which is how I came across this, the docked child overwrites the bottom of the header
     - If you change the header to any other position (left, right, bottom), the docked child ignores this completely and assumes a header 24 high at the top

    Cheers
  5. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 31 Mar 2014 Link to this post

    Hello Jason,

    Thank you for writing.

    We have migrated our Public Issue Tracking System to the Feedback Portal. You can track the issue progress, subscribe for status changes and add your vote/comment to it on the following link - Feedback Item
    RadGroupBox has incorrect layout when its Header is collapsed, no matter which theme you use. If you increase the Header.Font's size or change the HeaderPosition, the child control does not fill the available space correctly. I have extended the item's description to include your scenario as well.

    I have also updated your 
    Telerik points for reporting this.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top