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

RadGroupBox hide header

3 Answers 217 Views
GroupBox
This is a migrated thread and some comments may be shown as answers.
Kuba
Top achievements
Rank 1
Kuba asked on 10 Sep 2013, 06:50 AM
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

3 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Sep 2013, 04:56 PM
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 >>
0
Jason
Top achievements
Rank 1
answered on 26 Mar 2014, 03:57 PM
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
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 31 Mar 2014, 12:42 PM
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.

 
Tags
GroupBox
Asked by
Kuba
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Jason
Top achievements
Rank 1
Share this question
or