I have a usercontrol with 3 groupboxes. All boxes have to or three RabButtons. One of them scale buttons to big at runtime. When adding new buttons in a new groupbox the same thing happens again. Both groupbox and radbutton looks ok in design, but at runtime buttons scale to big. Buttons added directly to the usercontrol works fine.
I have tried both System.Windows.Forms.GroupBox and RadGroupBox, with same result.
Any idees?
4 Answers, 1 is accepted
Thank you for the question.
This looks like an issue we previously experienced which turned out to be related to the windows forms anchoring mechanism. Please try different anchoring settings or turn anchoring off if suitable. We are currently researching where exactly the problem comes from and will address it once we find it, if possible.
Thank you for your understanding.
Kind regards,Victor
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Hello Telerik Team,
I´m trying to add a RadLabel into a RadGroupBox programatically like this:
RadGroupBox time = new RadGroupBox();
time.Text = "Zeit Wahl";
time.Left = 20;
time.Top = 280;
RadLabel labelTime = new RadLabel();
labelTime.Text = "Zeitintervall von/bis wählen:";
labelTime.Left = 20;
labelTime.Top = 290;
time.Controls.Add(labelTime);
panelTypeCharts.Controls.Add(time);
But it doesnt work for me, I see the groupBox but the label is not there, any suggestions?
Thanks very much
Kind regards,
Alfonsina
The default size of RadGroupBox is 200x100, but you are trying to set the location of the RadLabel to (20, 290) which exceeds the bounds of the default RadGroupBox. In order to see your RadLabel, you should either set the Size of RadGroupBox to a a bigger value or set the Top property of the RadLabel to a value smaller than 100.
I hope this helps.
Nikolay
the Telerik team
Hello Nikolay,
Thanks you very much, its working !!
kind regards,
Alfonsina