Telerik Forums
UI for WinForms Forum
1 answer
41 views

I want to control a collapsible panel programmatically.  Also, I want the button section at the top hidden.  So far, I have that part working.  I also have the expanding/collasping working as well, but I have run into a problem. When I collapse the panel, the panel does not collapse all the way, it still sticks out a little bit, by like 12-14 pixels (in this case, on the bottom).  This is a problem for me, as I am expecting that entire space to be gone.

 

This is the Collasible Panel, where I have hidded the Header Panel and IsExanded is set to false:

 

This is the designer.cs part.  I am not sure what I am missing. What else to I need to do to make the panel have a height of 0.

namespace TEST
{
   partial class RadForm1
   {
      /// <summary>
      /// Required designer variable.
      /// </summary>
      private System.ComponentModel.IContainer components = null;
 
      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
      protected override void Dispose(bool disposing)
      {
         if (disposing && (components != null))
         {
            components.Dispose();
         }
         base.Dispose(disposing);
      }
 
      #region Windows Form Designer generated code
 
      /// <summary>
      /// Required method for Designer support - do not modify
      /// the contents of this method with the code editor.
      /// </summary>
      private void InitializeComponent()
      {
         this.radCollapsiblePanel1 = new Telerik.WinControls.UI.RadCollapsiblePanel();
         ((System.ComponentModel.ISupportInitialize)(this.radCollapsiblePanel1)).BeginInit();
         this.radCollapsiblePanel1.SuspendLayout();
         ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
         this.SuspendLayout();
         // 
         // radCollapsiblePanel1
         // 
         this.radCollapsiblePanel1.IsExpanded = false;
         this.radCollapsiblePanel1.Location = new System.Drawing.Point(8496);
         this.radCollapsiblePanel1.Name = "radCollapsiblePanel1";
         this.radCollapsiblePanel1.OwnerBoundsCache = new System.Drawing.Rectangle(8496393200);
         // 
         // radCollapsiblePanel1.PanelContainer
         // 
         this.radCollapsiblePanel1.PanelContainer.Size = new System.Drawing.Size(00);
         this.radCollapsiblePanel1.Size = new System.Drawing.Size(39321);
         this.radCollapsiblePanel1.TabIndex = 1;
         ((Telerik.WinControls.UI.RadCollapsiblePanelElement)(this.radCollapsiblePanel1.GetChildAt(0))).IsExpanded = false;
         ((Telerik.WinControls.UI.CollapsiblePanelHeaderElement)(this.radCollapsiblePanel1.GetChildAt(0).GetChildAt(1))).Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
         // 
         // RadForm1
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.ClientSize = new System.Drawing.Size(511254);
         this.Controls.Add(this.radCollapsiblePanel1);
         this.Name = "RadForm1";
         this.Text = " ";
         ((System.ComponentModel.ISupportInitialize)(this.radCollapsiblePanel1)).EndInit();
         this.radCollapsiblePanel1.ResumeLayout(false);
         ((System.ComponentModel.ISupportInitialize)(this)).EndInit();
         this.ResumeLayout(false);
 
      }
 
      #endregion
 
      private Telerik.WinControls.UI.RadCollapsiblePanel radCollapsiblePanel1;
   }
}

 

 

Hristo
Telerik team
 answered on 08 Sep 2025
1 answer
27 views

I have controls inside a RadCollapsiblePanel that I want to layout left to right and wrap to the next row.

I added a FlowLayoutPanel inside the RadCollapsiblePanel and added my controls in the FlowLayoutPanel.

However, the RadCollapsiblePanel doesn't display the scrollbars this way. It looks like the RadCollapsiblePanel isn't aware when the FlowLayoutPanel has overflown.

YF
Top achievements
Rank 1
Iron
 answered on 03 Sep 2025
1 answer
27 views

Hello, I need to use RadListView to display records in ListDetails in WINFORMS. I have an active field that returns true or false. I want to display it with a checkbox to make the display more presentable. Is this possible? I look forward to your responses. Thank you.

 

 

Nadya | Tech Support Engineer
Telerik team
 answered on 03 Sep 2025
0 answers
30 views
I implemented custom nodes by referring to https://docs.telerik.com/devtools/winforms/controls/treeview/working-with-nodes/custom-nodes.
I want to display an icon on the left, and on the right, display Title, line, and Text in order from top to bottom.
The first problem is that when displaying, the distance between line and Text is large, and adjusting the Padding and Margin of each element in CreateChildElements has no effect. See Figure 1 and Figure 1-1. If other items are commented out and only Title or Text is retained on the right, the display is correct, and it also displays correctly when TextWrap = true, as shown in Figure 2 and Figure 2-1.
The second problem is that when both Title and Text are displayed correctly, the display area is wrong when TextWrap = true, as shown in Figure 3,Figure 3-1.
The red rectangle in the figure indicates the error point.
Does anyone know where the problem lies?
yw
Top achievements
Rank 2
Iron
Iron
 asked on 30 Aug 2025
1 answer
29 views

Good morning,

Is there a way to enable natural sorting (two-way sorting) also in Winforms Virtualgrid? I saw that it is possible in ASP.NET AJAX libray (https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/functionality/sorting/controlling-sort-modes)

Thank you very much.

 

Emanuele

 

Dinko | Tech Support Engineer
Telerik team
 answered on 28 Aug 2025
2 answers
26 views

Hi sir 

 

      I install the version "2017_2_613_40" but in toolbox tab control not present how we enable that tab control

 

M Kumar
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 28 Aug 2025
2 answers
36 views

WinForms TreeView displays icons and text. How to obtain the Rectangle of the icon area, or how to implement the click event of the icon. Through the method in https://www.telerik.com/forums/hovering-over-node-image: 
TreeNodeImageElement imageElement = radTreeView1.ElementTree.GetElementAtPoint(e.Location) as TreeNodeImageElement;
The obtained structure is null, and the version is 2025.

thaks

yw
Top achievements
Rank 2
Iron
Iron
 answered on 25 Aug 2025
1 answer
39 views

 When the RadCheckBox or RadToggleButton control is clicked quickly, an exception will be thrown: System.NullReferenceException: "Object reference not set to an instance of an object."

   private void radCheckBox1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
   {
   }

   private void radToggleButton1_ToggleStateChanged(object sender, Telerik.WinControls.UI.StateChangedEventArgs args)
   {
   }
Nadya | Tech Support Engineer
Telerik team
 answered on 25 Aug 2025
3 answers
43 views

Hi there,


I have written a component that resides within a column of a RadGridView. Based on the provided source code, I need the cell events like CellBeginEdit, CellEndEdit, and CellValueChanged in the RadGridView to be handled intelligently and reliably for columns of the AdvancedRadMultiColumnComboPlus type.

In other words, how can I get events like CellBeginEdit, CellEndEdit, and CellValueChanged to fire for columns of the AdvancedRadMultiColumnComboPlus type?

Please guide me.

Thank you.

Abbas
Top achievements
Rank 1
Iron
 answered on 22 Aug 2025
0 answers
48 views

I'm experiencing a bizarre issue with RadGridView.

I had a grid on a form that displays the results of a List collection. Pretty simple, but there was one column that refused to display the data. The column itself appeared but the data didn't display. I moved everything to another form and it worked fine.

Now I added another column to the grid and now that won't display data. The data is in the list collection, the FieldName property is correct  (I even copied it from the POCO to make sure.). Then  I added another column to the grid and it won't display at all at runtime even though it shows in the designer. Here is the code from the designer:

Any ideas on this one. I've never had a grid act like this before. Unfortunately I can't send you demo code s if I copy it to another form it will work.

Carl

           gvMemos.MasterTemplate.AllowAddNewRow = false;
           gvMemos.MasterTemplate.AllowColumnHeaderContextMenu = false;
           gvMemos.MasterTemplate.AllowDeleteRow = false;
           gvMemos.MasterTemplate.AllowEditRow = false;
           gvMemos.MasterTemplate.AllowRowHeaderContextMenu = false;
           gvMemos.MasterTemplate.AllowRowResize = false;
           gvMemos.MasterTemplate.AllowSearchRow = true;
           gvMemos.MasterTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;
           gridViewTextBoxColumn1.EnableExpressionEditor = false;
           gridViewTextBoxColumn1.FieldName = "MemoOptionsDescription";
           gridViewTextBoxColumn1.HeaderText = "column1";
           gridViewTextBoxColumn1.Name = "column1";
           gridViewTextBoxColumn1.ReadOnly = true;
           gridViewTextBoxColumn1.Width = 284;
           gridViewTextBoxColumn2.DataType = typeof(DateTime);
           gridViewTextBoxColumn2.EnableExpressionEditor = false;
           gridViewTextBoxColumn2.FieldName = "DateTimeStamp";
           gridViewTextBoxColumn2.HeaderText = "Date/Time";
           gridViewTextBoxColumn2.Name = "Date";
           gridViewTextBoxColumn2.Width = 284;
           gridViewTextBoxColumn3.EnableExpressionEditor = false;
           gridViewTextBoxColumn3.FieldName = "MemoText2";
           gridViewTextBoxColumn3.HeaderText = "Memo Description";
           gridViewTextBoxColumn3.Name = "Memo Description";
           gridViewTextBoxColumn3.ReadOnly = true;
           gridViewTextBoxColumn3.Width = 284;
           gridViewTextBoxColumn4.EnableExpressionEditor = false;
           gridViewTextBoxColumn4.FieldName = "AssignedTo";
           gridViewTextBoxColumn4.HeaderText = "Assigned To";
           gridViewTextBoxColumn4.Name = "Assigned To";
           gridViewTextBoxColumn4.ReadOnly = true;
           gridViewTextBoxColumn4.Width = 284;
           gridViewTextBoxColumn5.FieldName = "MemoTypeDescription";
           gridViewTextBoxColumn5.HeaderText = "Type";
           gridViewTextBoxColumn5.Name = "Memo Type";
           gridViewTextBoxColumn5.Width = 284;
           gridViewTextBoxColumn6.EnableExpressionEditor = false;
           gridViewTextBoxColumn6.FieldName = "MemoOptionsDescription";
           gridViewTextBoxColumn6.HeaderText = "Options";
           gridViewTextBoxColumn6.Name = "Options";
           gridViewTextBoxColumn6.ReadOnly = true;
           gridViewTextBoxColumn6.Width = 284;
           gridViewTextBoxColumn7.EnableExpressionEditor = false;
           gridViewTextBoxColumn7.FieldName = "OperID";
           gridViewTextBoxColumn7.HeaderText = "User";
           gridViewTextBoxColumn7.Name = "User";
           gridViewTextBoxColumn7.ReadOnly = true;
           gridViewTextBoxColumn7.Width = 282;
           gvMemos.MasterTemplate.Columns.AddRange(new Telerik.WinControls.UI.GridViewDataColumn[] { gridViewTextBoxColumn1, gridViewTextBoxColumn2, gridViewTextBoxColumn3, gridViewTextBoxColumn4, gridViewTextBoxColumn5, gridViewTextBoxColumn6, gridViewTextBoxColumn7 });
           gvMemos.MasterTemplate.EnableAlternatingRowColor = true;
           gvMemos.MasterTemplate.EnablePaging = true;
           gvMemos.MasterTemplate.ShowGroupedColumns = true;
           gvMemos.MasterTemplate.ViewDefinition = tableViewDefinition1;
           gvMemos.Name = "gvMemos";
           gvMemos.Size = new System.Drawing.Size(1767, 229);
           gvMemos.TabIndex = 4;
           gvMemos.CellFormatting += OnCellFormattingMemos;
           gvMemos.ViewCellFormatting += OnViewCellFormattingMemos;
           gvMemos.ContextMenuOpening += OnContextMenuOpeningMemos;
           gvMemos.DoubleClick += gvMemos_DoubleClick;

 

Carl
Top achievements
Rank 1
Iron
Iron
Iron
 updated question on 21 Aug 2025
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
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?