Class
RadMultiColumnComboBox

Represents a multi-column combo box control that provides a dropdown grid interface for data selection. This control combines the functionality of a text box with a grid-based dropdown for enhanced data browsing and selection.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.GridView.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Data Controls")]
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")]
[DefaultBindingProperty("Text")]
public class RadMultiColumnComboBox : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadMultiColumnComboBox

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadEditorControl.GetPreferredSize(Size)RadEditorControl.GetRootElementDesiredSize(int, int, int, int)RadEditorControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnPaint(PaintEventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.WndProc(ref Message)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessFocusRequested(RadElement)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.GetInputElement()RadControl.BeginInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.GetMonitorDpiScaleFactor(Control)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.EnableThemingRadControl.ThemeClassNameRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.CreateParamsScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.Hide()Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.Show()Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MouseWheelControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadMultiColumnComboBox()

Initializes a new instance of the RadMultiColumnComboBox class with default settings. Sets up basic control properties including auto-sizing, tab behavior, and selection capabilities.

Declaration

cs-api-definition
public RadMultiColumnComboBox()

Properties

AutoCompleteMode

Gets or sets the automatic completion mode for the text entry portion of the combo box. This property is not applicable for RadMultiColumnComboBox and should not be used.

Declaration

cs-api-definition
[Browsable(false)]
public AutoCompleteMode AutoCompleteMode { get; set; }

Property Value

AutoCompleteMode

AutoFilter

Gets or sets a value indicating whether automatic filtering is enabled based on user input. When enabled, the dropdown list is filtered as the user types in the text box.

Declaration

cs-api-definition
public bool AutoFilter { get; set; }

Property Value

bool

AutoFilterDelay

Gets or sets the delay in milliseconds between the last key press and the start of the filtering operation. This property helps optimize performance by preventing excessive filtering during rapid typing.

Declaration

cs-api-definition
public int AutoFilterDelay { get; set; }

Property Value

int

AutoSize

Gets or sets a value indicating whether the control is automatically resized to display its entire contents. This property controls the auto-sizing behavior of the entire combo box control.

Declaration

cs-api-definition
[Browsable(true)]
public override bool AutoSize { get; set; }

Property Value

bool

Overrides RadControl.AutoSize

AutoSizeDropDownColumnMode

Gets or sets the mode for automatically sizing columns in the dropdown portion of the control. Determines whether columns are sized based on visible cells, all cells, or other criteria.

Declaration

cs-api-definition
public virtual BestFitColumnMode AutoSizeDropDownColumnMode { get; set; }

Property Value

BestFitColumnMode

AutoSizeDropDownHeight

Gets or sets a value indicating whether the dropdown height automatically adjusts when filtering is applied. When enabled, the dropdown shrinks or expands based on the number of filtered results.

Declaration

cs-api-definition
public bool AutoSizeDropDownHeight { get; set; }

Property Value

bool

AutoSizeDropDownToBestFit

Gets or sets a value indicating whether the dropdown automatically resizes to best fit all columns. The DropDownWidth property must be set to its default value (-1) for this setting to work properly.

Declaration

cs-api-definition
public bool AutoSizeDropDownToBestFit { get; set; }

Property Value

bool

ClearTextOnValidation

Gets or sets a value indicating whether the text is automatically cleared when it does not match any value in the DisplayMember column. When enabled, invalid text entries are automatically removed during validation.

Declaration

cs-api-definition
[Browsable(true)]
public bool ClearTextOnValidation { get; set; }

Property Value

bool

Columns

Gets the collection of columns displayed in the dropdown grid. Use this collection to define, configure, and manage the columns that appear in the dropdown interface.

Declaration

cs-api-definition
public GridViewColumnCollection Columns { get; }

Property Value

GridViewColumnCollection

DataSource

Gets or sets the data source for the combo box. The data source provides the items that are displayed in the dropdown grid.

Declaration

cs-api-definition
public object DataSource { get; set; }

Property Value

object

DblClickRotate

Gets or sets a value indicating whether double-clicking in the text edit area rotates through available items. When enabled, double-clicking cycles through the selectable values in the dropdown.

Declaration

cs-api-definition
[Browsable(true)]
public bool DblClickRotate { get; set; }

Property Value

bool

DefaultSize

Gets the default size of the control when no explicit size is specified. The default size provides a reasonable starting point for the control's dimensions.

Declaration

cs-api-definition
protected override Size DefaultSize { get; }

Property Value

Size

Overrides Control.DefaultSize

DisplayMember

Gets or sets the name of the data source member used to supply the display text for items in the combo box. This property determines which field from the data source is shown to the user.

Declaration

cs-api-definition
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string DisplayMember { get; set; }

Property Value

string

DropDownMaxSize

Gets or sets the maximum size allowed for the dropdown portion of the combo box. This prevents the dropdown from becoming too large and overwhelming the interface.

Declaration

cs-api-definition
public Size DropDownMaxSize { get; set; }

Property Value

Size

DropDownMinSize

Gets or sets the minimum size allowed for the dropdown portion of the combo box. This prevents the dropdown from becoming too small to be usable.

Declaration

cs-api-definition
public Size DropDownMinSize { get; set; }

Property Value

Size

DropDownSizingMode

Gets or sets the sizing mode for the dropdown portion of the control. The mode can be horizontal, vertical, or a combination that determines how the dropdown is resized.

Declaration

cs-api-definition
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }

Property Value

SizingMode

DropDownStyle

Gets or sets the dropdown style of the combo box, which determines the appearance and editing behavior. This controls whether the text portion is editable and how the dropdown is presented.

Declaration

cs-api-definition
[Browsable(true)]
public RadDropDownStyle DropDownStyle { get; set; }

Property Value

RadDropDownStyle

EditorControl

Gets the RadGridView control hosted in the popup form that provides the multi-column interface. This grid displays the data and handles user selection within the dropdown.

Declaration

cs-api-definition
public virtual RadGridView EditorControl { get; }

Property Value

RadGridView

MultiColumnComboBoxElement

Gets the hosted RadMultiColumnComboBoxElement that provides the core functionality of the combo box. This element contains all the logic for dropdown management, data binding, and user interaction.

Declaration

cs-api-definition
[Browsable(false)]
public RadMultiColumnComboBoxElement MultiColumnComboBoxElement { get; }

Property Value

RadMultiColumnComboBoxElement

MultiColumnPopupForm

Gets the popup form that contains the multi-column grid interface. This form is displayed when the dropdown is opened and contains the RadGridView for data selection.

Declaration

cs-api-definition
protected MultiColumnComboPopupForm MultiColumnPopupForm { get; }

Property Value

MultiColumnComboPopupForm

NullText

Gets or sets the placeholder text that is displayed when the Text property contains an empty string or is null. This provides a visual hint to users about the expected input or purpose of the control.

Declaration

cs-api-definition
[Browsable(true)]
[Bindable(true)]
public string NullText { get; set; }

Property Value

string

ReadOnly

Gets or sets a value indicating whether the control is in read-only mode. When read-only, users can view and select items but cannot edit the text portion.

Declaration

cs-api-definition
[Browsable(true)]
public bool ReadOnly { get; set; }

Property Value

bool

ScrollOnMouseWheel

Gets or sets a value indicating whether the user can scroll through items using the mouse wheel when the popup is closed. This enables convenient item navigation without opening the dropdown.

Declaration

cs-api-definition
public bool ScrollOnMouseWheel { get; set; }

Property Value

bool

SelectedIndex

Gets or sets the index of the currently selected item in the combo box. A value of -1 indicates that no item is selected.

Declaration

cs-api-definition
[Browsable(false)]
public int SelectedIndex { get; set; }

Property Value

int

SelectedItem

Gets or sets the currently selected item in the combo box. This represents the entire data object corresponding to the selected row.

Declaration

cs-api-definition
[Browsable(false)]
[Bindable(true)]
public object SelectedItem { get; set; }

Property Value

object

SelectedValue

Gets or sets the value of the currently selected item as determined by the ValueMember property. This property provides the underlying value associated with the selected item.

Declaration

cs-api-definition
[Browsable(false)]
[Bindable(true)]
public object SelectedValue { get; set; }

Property Value

object

ShowItemToolTips

Gets or sets a value indicating whether ToolTips are shown for the RadItem objects contained in the control. When enabled, tooltips are displayed for both the control and its dropdown grid items.

Declaration

cs-api-definition
public override bool ShowItemToolTips { get; set; }

Property Value

bool

Overrides RadControl.ShowItemToolTips

Text

Gets or sets the text displayed in the text box portion of the combo box. This text represents the current selection or user input and can be bound to data sources.

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides RadControl.Text

ValueMember

Gets or sets the name of the data source member used to supply the value for items in the combo box. This property determines which field from the data source provides the actual value for each item.

Declaration

cs-api-definition
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string ValueMember { get; set; }

Property Value

string

Methods

BestFitColumns()

Automatically adjusts the width of all columns based on the content of visible rows. This method resizes columns to optimally display their content without horizontal scrolling.

Declaration

cs-api-definition
public void BestFitColumns()

BestFitColumns(bool, bool)

Automatically adjusts the width of all columns with options for dropdown sizing and row analysis. This overload provides more control over the best-fit operation.

Declaration

cs-api-definition
public void BestFitColumns(bool adjustComboBoxSize, bool bestFitAllRows)

Parameters

adjustComboBoxSize

bool

true to adjust the dropdown size according to the total width of all columns; otherwise, false.

bestFitAllRows

bool

true to calculate optimal width by analyzing all rows including non-visible ones; false to analyze only visible rows.

ControlDefinesThemeForElement(RadElement)

Determines whether the control defines a theme for the specified element. This method prevents theme duplication by indicating which elements have control-defined themes.

Declaration

cs-api-definition
public override bool ControlDefinesThemeForElement(RadElement element)

Parameters

element

RadElement

The element to check for theme definition.

Returns

bool

true if the control defines a theme for this element; false otherwise.

Overrides RadControl.ControlDefinesThemeForElement(RadElement)

CreateChildItems(RadElement)

Creates the child element hierarchy for the combo box control. This method establishes the main combo box element and wires up all necessary event handlers.

Declaration

cs-api-definition
protected override void CreateChildItems(RadElement parent)

Parameters

parent

RadElement

The parent element to which child elements will be added.

Overrides RadControl.CreateChildItems(RadElement)

CreateMultiColumnComboBoxElement()

Creates and returns a new instance of the RadMultiColumnComboBoxElement that serves as the main element for this control. This method can be overridden to provide custom element implementations.

Declaration

cs-api-definition
protected virtual RadMultiColumnComboBoxElement CreateMultiColumnComboBoxElement()

Returns

RadMultiColumnComboBoxElement

A new RadMultiColumnComboBoxElement instance.

Dispose(bool)

Releases the unmanaged resources used by the RadMultiColumnComboBox and optionally releases the managed resources.

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

Overrides RadControl.Dispose(bool)

EndInit()

Completes the initialization of the combo box control that is used on a form or by another component. The initialization occurs at run time and finalizes the setup of the control.

Declaration

cs-api-definition
public override void EndInit()

Overrides RadControl.EndInit()

IsInputKey(Keys)

Determines whether the specified key is an input key that should be processed by the control. This method handles special keys like Up and Down arrows for dropdown-style controls.

Declaration

cs-api-definition
protected override bool IsInputKey(Keys keyData)

Parameters

keyData

Keys

One of the Keys values to evaluate.

Returns

bool

true if the specified key is an input key; otherwise, false.

Overrides RadControl.IsInputKey(Keys)

OnBindingContextChanged(EventArgs)

Raises the BindingContextChanged event and synchronizes the binding context with the editor control. This method ensures that data binding contexts are properly propagated to the dropdown grid.

Declaration

cs-api-definition
protected override void OnBindingContextChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadControl.OnBindingContextChanged(EventArgs)

OnCaseSensitiveChanged(EventArgs)

Raises the CaseSensitiveChanged event. This method is called when the case sensitivity setting changes.

Declaration

cs-api-definition
protected virtual void OnCaseSensitiveChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnDataBindingComplete(GridViewBindingCompleteEventArgs)

Raises the DataBindingComplete event when the underlying grid completes its data binding process. This method is called after the grid has been populated with data from the data source.

Declaration

cs-api-definition
protected virtual void OnDataBindingComplete(GridViewBindingCompleteEventArgs e)

Parameters

e

GridViewBindingCompleteEventArgs

A GridViewBindingCompleteEventArgs that contains information about the data binding operation.

OnDropDownClosed(RadPopupClosedEventArgs)

Raises the DropDownClosed event. This method is called after the dropdown window has closed.

Declaration

cs-api-definition
protected virtual void OnDropDownClosed(RadPopupClosedEventArgs e)

Parameters

e

RadPopupClosedEventArgs

A RadPopupClosedEventArgs that contains information about how the popup was closed.

OnDropDownClosing(RadPopupClosingEventArgs)

Raises the DropDownClosing event. This method is called when the dropdown window is about to close and allows cancellation.

Declaration

cs-api-definition
protected virtual void OnDropDownClosing(RadPopupClosingEventArgs e)

Parameters

e

RadPopupClosingEventArgs

A RadPopupClosingEventArgs that contains information about the closing operation and allows cancellation.

OnDropDownOpened(EventArgs)

Raises the DropDownOpened event. This method is called after the dropdown window has opened.

Declaration

cs-api-definition
protected virtual void OnDropDownOpened(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnDropDownOpening(CancelEventArgs)

Raises the DropDownOpening event. This method is called when the dropdown window is about to open and allows cancellation.

Declaration

cs-api-definition
protected virtual void OnDropDownOpening(CancelEventArgs e)

Parameters

e

CancelEventArgs

A CancelEventArgs that contains information about the opening operation and allows cancellation.

OnDropDownStyleChanged(EventArgs)

Raises the DropDownStyleChanged event. This method is called when the dropdown style changes.

Declaration

cs-api-definition
protected virtual void OnDropDownStyleChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnEnter(EventArgs)

Raises the Enter event and transfers focus to the text box element. This method ensures proper focus handling when the control receives focus.

Declaration

cs-api-definition
protected override void OnEnter(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnEnter(EventArgs)

OnGotFocus(EventArgs)

Raises the GotFocus event and selects all text in the text box. This method provides convenient text selection when the control gains focus.

Declaration

cs-api-definition
protected override void OnGotFocus(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadControl.OnGotFocus(EventArgs)

OnLeave(EventArgs)

Raises the Leave event and closes the popup if it is open. This method handles cleanup when the control loses focus.

Declaration

cs-api-definition
protected override void OnLeave(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnLeave(EventArgs)

OnLostFocus(EventArgs)

Raises the LostFocus event and handles selection state when focus is lost. This method processes the current selection and clears text selection if appropriate.

Declaration

cs-api-definition
protected override void OnLostFocus(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadControl.OnLostFocus(EventArgs)

OnParentChanged(EventArgs)

Raises the ParentChanged event and closes the popup when the parent changes. This method ensures proper cleanup when the control is moved to a different parent.

Declaration

cs-api-definition
protected override void OnParentChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadEditorControl.OnParentChanged(EventArgs)

OnParentVisibleChanged(EventArgs)

Raises the ParentVisibleChanged event and closes the popup when the parent's visibility changes. This method handles popup closure when the parent container becomes invisible.

Declaration

cs-api-definition
protected override void OnParentVisibleChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides Control.OnParentVisibleChanged(EventArgs)

OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event. This method is called when the selected index changes.

Declaration

cs-api-definition
protected virtual void OnSelectedIndexChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnSelectedValueChanged(EventArgs)

Raises the SelectedValueChanged event. This method is called when the selected value changes.

Declaration

cs-api-definition
protected virtual void OnSelectedValueChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnSortedChanged(EventArgs)

Raises the SortedChanged event. This method is called when the sorting configuration changes.

Declaration

cs-api-definition
protected virtual void OnSortedChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnVisibleChanged(EventArgs)

Raises the VisibleChanged event and closes the popup if the control becomes invisible. This method ensures the popup is closed when the control is hidden.

Declaration

cs-api-definition
protected override void OnVisibleChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadControl.OnVisibleChanged(EventArgs)

ProcessAutoSizeChanged(bool)

Processes auto-size mode changes and adjusts the element's stretch behavior accordingly. When auto-sizing is enabled, the control stretches horizontally but not vertically.

Declaration

cs-api-definition
protected override void ProcessAutoSizeChanged(bool value)

Parameters

value

bool

true if auto-sizing is enabled; otherwise, false.

Overrides RadControl.ProcessAutoSizeChanged(bool)

ProcessCmdKey(ref Message, Keys)

Processes command keys and handles special key combinations. This method intercepts Tab key presses to properly set the current row in the dropdown grid.

Declaration

cs-api-definition
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg

Message

A Message passed by reference that represents the window message to process.

keyData

Keys

One of the Keys values that represents the key to process.

Returns

bool

true if the character was processed by the control; otherwise, false.

Overrides Control.ProcessCmdKey(ref Message, Keys)

ResetBackColorThemeOverrides()

Resets theme value overrides for the BackColor property and reapplies the default theme. This method clears custom background color overrides and restores theme-based coloring.

Declaration

cs-api-definition
protected override void ResetBackColorThemeOverrides()

Overrides RadControl.ResetBackColorThemeOverrides()

ResetForeColorThemeOverrides()

Resets theme value overrides for the ForeColor property and reapplies the default theme. This method clears custom foreground color overrides and restores theme-based coloring.

Declaration

cs-api-definition
protected override void ResetForeColorThemeOverrides()

Overrides RadControl.ResetForeColorThemeOverrides()

SetBackColorThemeOverrides()

Sets theme value overrides for the BackColor property across all visual states. This method ensures consistent background color theming for the combo box and its text element.

Declaration

cs-api-definition
protected override void SetBackColorThemeOverrides()

Overrides RadControl.SetBackColorThemeOverrides()

SetEditorControlBindingContext()

Sets the binding context of the editor control to match the combo box's binding context. This ensures consistent data binding behavior between the control and its dropdown grid.

Declaration

cs-api-definition
protected virtual void SetEditorControlBindingContext()

SetForeColorThemeOverrides()

Sets theme value overrides for the ForeColor property across all visual states. This method ensures consistent foreground color theming for the combo box element.

Declaration

cs-api-definition
protected override void SetForeColorThemeOverrides()

Overrides RadControl.SetForeColorThemeOverrides()

UnwireEditorControlDataBindingEvent()

Unwires the data binding event handler from the editor control if it is available. This is called during cleanup to ensure proper event handler removal.

Declaration

cs-api-definition
protected virtual void UnwireEditorControlDataBindingEvent()

UnwireEvents()

Unwires all event handlers that were previously attached to the combo box element. This method is called during disposal to prevent memory leaks.

Declaration

cs-api-definition
protected virtual void UnwireEvents()

WireEditorControlDataBindingEvent()

Wires the data binding event handler for the editor control if it is available. This enables handling of data binding completion events from the underlying grid.

Declaration

cs-api-definition
protected virtual void WireEditorControlDataBindingEvent()

WireEvents()

Wires all necessary event handlers between the combo box element and the control. This includes handlers for text changes, selection changes, popup events, and keyboard input.

Declaration

cs-api-definition
protected virtual void WireEvents()

Events

CaseSensitiveChanged

Occurs when the CaseSensitive property value changes. This event is raised when the case sensitivity property value changes.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler CaseSensitiveChanged

Event Value

EventHandler

DataBindingComplete

Occurs when the data binding process for the underlying grid control finishes. This event is useful for performing actions after the grid has been populated with data.

Declaration

cs-api-definition
public event GridViewBindingCompleteEventHandler DataBindingComplete

Event Value

GridViewBindingCompleteEventHandler

DropDownClosed

Occurs after the dropdown window has closed and is no longer visible. This event provides information about how and why the dropdown was closed.

Declaration

cs-api-definition
[Browsable(true)]
public event RadPopupClosedEventHandler DropDownClosed

Event Value

RadPopupClosedEventHandler

DropDownClosing

Occurs when the dropdown window is about to close. This event can be used to cancel the closing operation or perform cleanup actions.

Declaration

cs-api-definition
[Browsable(true)]
public event RadPopupClosingEventHandler DropDownClosing

Event Value

RadPopupClosingEventHandler

DropDownOpened

Occurs after the dropdown window has opened and is visible to the user. This event is useful for performing actions once the dropdown interface is available.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler DropDownOpened

Event Value

EventHandler

DropDownOpening

Occurs when the dropdown window is about to open. This event can be used to cancel the opening operation or prepare the dropdown content.

Declaration

cs-api-definition
[Browsable(true)]
public event RadPopupOpeningEventHandler DropDownOpening

Event Value

RadPopupOpeningEventHandler

DropDownStyleChanged

Occurs when the DropDownStyle property value changes. This event is raised when the dropdown style is modified.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler DropDownStyleChanged

Event Value

EventHandler

ReadOnlyChanged

Occurs when the ReadOnly property value changes. This event is raised when the read-only state of the control is modified.

Declaration

cs-api-definition
public event EventHandler ReadOnlyChanged

Event Value

EventHandler

SelectedIndexChanged

Occurs when the SelectedIndex property value changes. This event is raised whenever a different item is selected in the combo box.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler SelectedIndexChanged

Event Value

EventHandler

SelectedValueChanged

Occurs when the SelectedValue property value changes. This event is raised whenever the value of the selected item changes.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler SelectedValueChanged

Event Value

EventHandler

SortedChanged

Occurs when the sorting configuration of the dropdown grid changes. This event is raised when columns are sorted or unsorted.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler SortedChanged

Event Value

EventHandler

In this article
DefinitionConstructorsRadMultiColumnComboBox()PropertiesAutoCompleteModeAutoFilterAutoFilterDelayAutoSizeAutoSizeDropDownColumnModeAutoSizeDropDownHeightAutoSizeDropDownToBestFitClearTextOnValidationColumnsDataSourceDblClickRotateDefaultSizeDisplayMemberDropDownMaxSizeDropDownMinSizeDropDownSizingModeDropDownStyleEditorControlMultiColumnComboBoxElementMultiColumnPopupFormNullTextReadOnlyScrollOnMouseWheelSelectedIndexSelectedItemSelectedValueShowItemToolTipsTextValueMemberMethodsBestFitColumns()BestFitColumns(bool, bool)ControlDefinesThemeForElement(RadElement)CreateChildItems(RadElement)CreateMultiColumnComboBoxElement()Dispose(bool)EndInit()IsInputKey(Keys)OnBindingContextChanged(EventArgs)OnCaseSensitiveChanged(EventArgs)OnDataBindingComplete(GridViewBindingCompleteEventArgs)OnDropDownClosed(RadPopupClosedEventArgs)OnDropDownClosing(RadPopupClosingEventArgs)OnDropDownOpened(EventArgs)OnDropDownOpening(CancelEventArgs)OnDropDownStyleChanged(EventArgs)OnEnter(EventArgs)OnGotFocus(EventArgs)OnLeave(EventArgs)OnLostFocus(EventArgs)OnParentChanged(EventArgs)OnParentVisibleChanged(EventArgs)OnSelectedIndexChanged(EventArgs)OnSelectedValueChanged(EventArgs)OnSortedChanged(EventArgs)OnVisibleChanged(EventArgs)ProcessAutoSizeChanged(bool)ProcessCmdKey(ref Message, Keys)ResetBackColorThemeOverrides()ResetForeColorThemeOverrides()SetBackColorThemeOverrides()SetEditorControlBindingContext()SetForeColorThemeOverrides()UnwireEditorControlDataBindingEvent()UnwireEvents()WireEditorControlDataBindingEvent()WireEvents()EventsCaseSensitiveChangedDataBindingCompleteDropDownClosedDropDownClosingDropDownOpenedDropDownOpeningDropDownStyleChangedReadOnlyChangedSelectedIndexChangedSelectedValueChangedSortedChanged
Not finding the help you need?
Contact Support