Telerik Forums
UI for WinForms Forum
1 answer
17 views

I want to create a class of RadGroupBox that when I drop my class on a form, that there is no "TEXT" value.  We use the GroupBox alot in our system, /w out the HEADER TEXT.  So far, my attempts have failed.   Here is my GroupBy class.

 


   public sealed class NtsRadGroupBoxNoHeader : RadGroupBox
   {
      #region Public Constructors

      public NtsRadGroupBoxNoHeader()
      {
         Padding = new System.Windows.Forms.Padding(2);
         ThemeClassName = "Telerik.WinControls.UI.RadGroupBox";
         Text = string.Empty;
         AccessibleName = string.Empty;
         AccessibleDescription = string.Empty;
         ((Telerik.WinControls.Primitives.TextPrimitive)(GetChildAt(0).GetChildAt(1).GetChildAt(2).GetChildAt(1))).Text = string.Empty;
      }

      #endregion Public Constructors
   }

Nadya | Tech Support Engineer
Telerik team
 answered on 28 Feb 2024
1 answer
95 views

Hi Telerik supportteam,

I’ve found something interesting around filtering combined with a CustomGroupComparer on a RadGridView. To illustrate the situation I added a small example application.

 

Situation:

Start the application, create a groupBy on e.g. TwoStateCheckbox column, expand some of the groups.

Now, filter on e.g. Name (contains ‘7’).

 

Result:

All the groups get collapsed.

 

My own analyses:

With a breakpoint on rule 21 in the CustomGroupComparer, I see that dataGroup.IsExpanded is false, even when the group in the grid is expanded.

With a custom group comparer, Telerik does something with a groupBuilder. It suggests that groups are cloned? If that’s the case I guess the IsExpanded property is not set correctly. Sounds like a bug to me. Can you confirm this and how can I work around this??

 

By the way: without a customGroupComparer it works ok but we need the custom thing.

Regard,

Daniel Kaya

Dinko | Tech Support Engineer
Telerik team
 answered on 21 Apr 2023
1 answer
55 views

Hi,

I have just installed the latest update to R3 2022 and notice that the rendering of radio buttons now seems to have an issue when drawn in HDPI.

I have taken these images from the Demo App for Group Box

Example in non HDPI

When application dragged to HDPI 4K monitor

 

Kind regards, Toby

Dinko | Tech Support Engineer
Telerik team
 answered on 16 Sep 2022
2 answers
230 views

hi

Why do I want to uncheck all the form checkboxes, but the regular checkbox is done ?!

 

 

my code is

void ClearForm(GroupBox control)
        {
               
            
                foreach (Control chexkBox in control.Controls)
                {
                    if (chexkBox is CheckBox)
                    {
                        ((CheckBox)chexkBox).Checked = false;

                    }


                }

                foreach (Control textBox in control.Controls)
                {
                if (textBox.GetType() == typeof(TextBox))
                    {
                        ((TextBox)textBox).Text = "no";

                    }

                }
            

           


        }
Dinko | Tech Support Engineer
Telerik team
 answered on 25 Nov 2021
3 answers
165 views

Greetings,

In order to apply fade-in effect to rad controls (if possible), a nice approach is to increase the opacity of RootElement from 0 to 1 gradually with a timer. It works just fine with most of the rad controls including radbuttons, but there is an issue when I apply this method to a rad group box.

I attached a gif file that illustrates the issue (please notice that the blue background is actually the background of radgroupbox itself, not the container form).

Changing opacity of Radgroupbox.RootElement only affects the border frame of the box, not the whole box itself (background color stays still even with RootElement.Opacity = 0 ).

 

Any suggestion to fade in a radgroupbox ?

 

Thanks in advance.

Nadya | Tech Support Engineer
Telerik team
 answered on 02 Oct 2020
9 answers
293 views
Hi guys,

I'm in the process of converting all existing WinForm GroupBoxes to RadGroupBoxes programatically. However there's a property called AutoSizeMode that's missing and I need some help to resize a groupbox based on the number of controls in it.

The code that I'm working with now is
GroupBox dbGroupBox = new GroupBox();             
dbGroupBox.Location = new System.Drawing.Point(10, 0); 
dbGroupBox.Name = databaseInstance + pageName; 
dbGroupBox.TabIndex = 0; 
dbGroupBox.TabStop = false
dbGroupBox.Text = pageTitle + "  (Possible Matchs)"
dbGroupBox.AutoSize = true;         
dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly;                         
dbGroupBox.Tag = tag.ToString(); 
dbGroupBox.BackColor = Color.Transparent; 

and I need to convert it into

RadGroupBox dbGroupBox = new RadGroupBox(); 
dbGroupBox.Location = new System.Drawing.Point(460, groupBoxY); 
dbGroupBox.Name = databaseInstance + pageName; 
dbGroupBox.TabIndex = 0; 
dbGroupBox.TabStop = false
dbGroupBox.Text = pageTitle + "  (Possible Matchs)"
dbGroupBox.AutoSize = true;         
//dbGroupBox.AutoSizeMode = AutoSizeMode.GrowOnly;                         
dbGroupBox.Tag = tag.ToString(); 
dbGroupBox.BackColor = Color.Transparent; 

Note that line 8 has been commented out because there's no AutoSizeMode in a RadGroupBox. Can you advise on how I can toggle a resize on the Groupbox based on the number of controls within the box? (i.e. the controls are generated dynamically.)

Thanks

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 18 Aug 2020
1 answer
218 views

Hello,

Some of my groupbox have no header text. I've found out a little spot in place of header in Office2007 theme even there is no header text.

In order to figure out by myself, I've compared most of telerik themes. Please see what I've found in the attach picture.

How can I hide the little spot (or the little blank in some theme)?

Is this normal? Any idea? 

Thank you by advance.

Dimitar
Telerik team
 answered on 20 Dec 2018
2 answers
61 views

Hello,

 

I have defined my own GroupBox, that inherits the RadGroupBox.

If I apply a Theme, nothing happend.

Button, MaskedEditBox, CheckBox etc. works fine, but not the GroupBox.

Is this an known issue?

 

Regards

Marc
Top achievements
Rank 1
Veteran
 answered on 20 Sep 2018
6 answers
1.4K+ views
hi telerik, 
thanks for your help in advance.

the groupbox is bigger and bigger when i set autosize =true.

steps.
 1. drag a radgroupbox into form
 2. drag 3 radpanels into radgroupbox
 3. set the 3 radpanels' dock = dockstyle.top
 4. set radgroupbox. autosize = true
 5. drag a radbutton into form and out of radgroupbox
 6. add click eventhandler to radbotton with below code
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    RadPanel2.Visible = Not RadPanel2.Visible
End Sub
 7.  run app,  click the button continuously,  you can find the width of groupbox is bigger and bigger.

what is wrong and how to avoid ?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Mar 2018
3 answers
419 views
I am a bit confused here.  What I want to do is change the color of the text in the header of a group box.  Here's what I have figured out so far:

Dim

 

 

RE As RadElement = DirectCast(Me.rgbPharmacyInformation.RootElement.Children(0).Children(1).
                                                                    Children(2).Children(1),
RadElement)
The zeroth child of the root element is the RadGroupBoxElement.
The First child of the RadGroupBoxElement is the GroupBoxHeader element.
The second child of the GroupBoxHesder elelemnt is the ImageAndTextLayoutPanel element.
The first child of the ImageAndTextLayoutPanel element is text. 

Looking at the property inspector in VS2010, I see properties for this element and the property I would like to change is the Fioreground color.  But what do I cast the "text" element as (In the above code, the "text" can be successfully cast to a RadElement)?  How can I get to this property?   

Anybody's assistance would be appreciated!  Thank you for your time!

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 12 Oct 2017
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
Buttons, RadioButton, CheckBox, etc
DropDownList
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
Tabstrip (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
GanttView
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
VirtualGrid
ContextMenu
Spreadsheet
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
Rotator
TrackBar
MessageBox
CheckedDropDownList
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
CAB Enabling Kit
TabbedForm
DataEntry
ScrollablePanel
WaitingBar
ImageEditor
ScrollBar
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
VirtualKeyboard
FilterView
Accessibility
DataLayout
NavigationView
ToastNotificationManager
CalculatorDropDown
Localization
TimePicker
ValidationProvider
FontDropDownList
Licensing
BreadCrumb
ButtonTextBox
LocalizationProvider
Dictionary
Overlay
Security
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
Flyout
TaskbarButton
HeatMap
SlideView
PipsPager
+? more
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Dominik
Top achievements
Rank 1
Giuliano
Top achievements
Rank 1
Dominic
Top achievements
Rank 1
Glendys
Top achievements
Rank 1
NoobMaster
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?