RadDropDownList
Represents a combo box control that displays a list of items from which the user can select. The RadDropDownList class is essentially a wrapper for the RadDropDownListElement component which implements the core UI and logic functionality. This control supports various selection modes, data binding, customization options, and can be integrated with other Telerik controls.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Data Controls")]
[ComplexBindingProperties("DataSource", "ValueMember")]
[LookupBindingProperties("DataSource", "DisplayMember", "ValueMember", "SelectedValue")]
[DefaultBindingProperty("Text")]
public class RadDropDownList : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadDropDownList...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadDropDownList class. Sets default properties such as AutoSize to true, configures the control to be selectable, and establishes property bindings between the root element and dropdown list element.
public RadDropDownList()
Fields
public static readonly object CreatingVisualListItemEventKey
public static readonly object KeyDownEventKey
public static readonly object KeyPressEventKey
public static readonly object KeyUpEventKey
public static readonly object ListItemDataBindingEventKey
public static readonly object ListItemDataBoundEventKey
public static readonly object PopupClosedEventKey
public static readonly object PopupClosingEventKey
public static readonly object PopupOpenedEventKey
public static readonly object PopupOpeningEventKey
public static readonly object SelectedIndexChangedEventKey
public static readonly object SelectedIndexChangingEventKey
public static readonly object SelectedValueChangedEventKey
public static readonly object SelectionRangeChangedKey
public static readonly object SortStyleChangedKey
public static readonly object VisualItemFormattingKey
Properties
Gets or sets a value indicating whether visual focus cues are displayed when the control has input focus. Focus cues are visual indicators (like a border or highlight) that show which control is currently active, improving accessibility and keyboard navigation feedback for users.
[Browsable(true)]
public override bool AllowShowFocusCues { get; set; }
Overrides:
Gets or sets the object that provides data items for the AutoComplete suggestion feature. When typing in the control with AutoComplete enabled, this data source is used to generate suggestions based on what the user is typing.
[Browsable(false)]
public virtual object AutoCompleteDataSource { get; set; }
Gets or sets the property name used to display text for each item in the AutoComplete suggestion list. This property specifies which field from the AutoCompleteDataSource objects should be displayed in the suggestion list. Cannot be set to null - will be converted to an empty string.
[Browsable(false)]
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public virtual string AutoCompleteDisplayMember { get; set; }
Gets or sets the mode for the automatic text completion feature used in the RadDropDownList. This property determines how autocomplete behavior works: None (disabled), Suggest (shows matching items), Append (automatically completes text in the editor), or SuggestAppend (combines both behaviors). This feature assists users in quickly finding and selecting items while typing.
[Browsable(true)]
public virtual AutoCompleteMode AutoCompleteMode { get; set; }
Gets or sets the property name used to determine the value of items in the AutoComplete suggestion list. This property specifies which field from the AutoCompleteDataSource objects should be used as the underlying value when an AutoComplete suggestion is selected. Cannot be set to null - will be converted to an empty string.
[Browsable(false)]
public virtual string AutoCompleteValueMember { get; set; }
Gets or sets a value indicating whether the RadDropDownList control automatically adjusts its size. When enabled, the control will resize itself to properly display its content and selected item, ensuring that text is not cut off and visual elements are properly aligned.
[Browsable(true)]
public override bool AutoSize { get; set; }
Overrides:
Gets or sets a value that indicates whether items will be sized according to their content. When enabled, each item will automatically adjust its height based on its text, image, and other content. For fine-grained control, you can set the Height property of individual RadListDataItem objects in the Items collection to override the automatic sizing behavior for specific items.
[Browsable(true)]
public virtual bool AutoSizeItems { get; set; }
Gets or sets a value indicating whether string comparisons are case-sensitive. When enabled, searching, filtering, and item selection operations will match the exact letter case, distinguishing between uppercase and lowercase letters. This affects text matching operations such as finding items during typing or when filtering the dropdown list.
[Browsable(true)]
public virtual bool CaseSensitive { get; set; }
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. When set to true, this property ensures that validation rules are applied to other controls on the form before the focus moves to this control.
public bool CausesValidation { get; set; }
true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. The default value is true.
Gets or sets the name of the specific list or table within the data source that the RadDropDownList should display. This is particularly useful when the data source contains multiple tables or lists and you need to specify which one to use.
[Browsable(true)]
public string DataMember { get; set; }
Gets or sets the data source for the RadDropDownList control. The data source can be any object that implements the IList or IListSource interface, such as a DataTable or an array of objects.
public object DataSource { get; set; }
Gets or sets the default number of items displayed in the drop-down portion of the RadDropDownList before scrolling is required. This value is used to calculate the default dropdown height when no explicit height is specified.
[Browsable(true)]
public virtual int DefaultItemsCountInDropDown { get; set; }
Gets the default size of the RadDropDownList control when it is first created. This defines the initial dimensions before any auto-sizing or manual resizing occurs.
protected override Size DefaultSize { get; }
A Size object representing the default size of the control (125x20 pixels).
Overrides:
Gets or sets the property name used to extract descriptive text from data source items. When the control is bound to a data source, this property specifies which field provides additional descriptive text for each item. This text is accessible via the Value property of each RadListDataItem in the Items collection.
[Browsable(true)]
public string DescriptionTextMember { get; set; }
Gets or sets the property name used to display text for each item in the dropdown list. When the control is bound to a data source, this property specifies which field from the data source objects should be displayed as text in the list items. Cannot be set to null - will be converted to an empty string.
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string DisplayMember { get; set; }
Gets or sets the easing type for the dropdown animation. The easing type controls the rate of change of the animation over time, creating effects like acceleration, deceleration, bouncing, etc. This property only has an effect when DropDownAnimationEnabled is true.
[Browsable(true)]
public virtual RadEasingType DropDownAnimationEasing { get; set; }
Gets or sets a value indicating whether the dropdown portion of the control will use animation effects when opening and closing. When enabled, the dropdown slides into view with a smooth transition effect rather than appearing instantly.
public virtual bool DropDownAnimationEnabled { get; set; }
Gets or sets the number of frames that will be used when the dropdown is being animated. Higher frame counts result in smoother animations but may require more processing power. This property only has an effect when DropDownAnimationEnabled is true.
public virtual int DropDownAnimationFrames { get; set; }
Gets or sets the height in pixels of the drop-down portion of the RadDropDownList. This controls the vertical size of the popup that displays the list items when the dropdown is activated. If there are more items than can fit in the specified height, a scrollbar appears.
public virtual int DropDownHeight { get; set; }
Gets the core RadDropDownListElement that implements the functionality of this control. This element manages the dropdown behavior, item display, and selection operations.
[Browsable(true)]
public virtual RadDropDownListElement DropDownListElement { get; }
Gets or sets the maximum size of the drop-down portion of the RadDropDownList. This defines the largest dimensions the dropdown can have, even when resizable or when containing many items. This helps ensure the dropdown remains manageable on screen.
public virtual Size DropDownMaxSize { get; set; }
Gets or sets the minimum size of the drop-down portion of the RadDropDownList control. This defines the smallest dimensions the dropdown can have, regardless of content or the number of items. Setting a larger minimum size can improve usability by ensuring the dropdown is always large enough to be easily interacted with.
[Browsable(true)]
public virtual Size DropDownMinSize { get; set; }
Gets or sets a value from the SizingMode enumeration that determines how the drop-down popup can be resized by the user. Options include vertical resizing, horizontal resizing, resizing in both directions, or no resizing at all. When enabled, this allows users to dynamically adjust the size of the dropdown to see more items or view longer item content.
[Browsable(true)]
public virtual SizingMode DropDownSizingMode { get; set; }
Gets or sets a value specifying the style of the RadDropDownList. This determines how the control behaves: DropDown style allows direct text editing, while DropDownList style only permits selection from the dropdown list.
public virtual RadDropDownStyle DropDownStyle { get; set; }
Gets or sets a value indicating whether alternating item color is enabled. When enabled, list items will be displayed with alternating background colors for better visual distinction between adjacent items in the dropdown list.
[Browsable(true)]
public virtual bool EnableAlternatingItemColor { get; set; }
Gets or sets a value indicating whether the kinetic scrolling function is enabled. When enabled, the dropdown list will support momentum-based scrolling, providing a more natural touch-friendly experience where scrolling continues briefly after the user releases their touch gesture, simulating physical inertia.
[Browsable(true)]
public virtual bool EnableKineticScrolling { get; set; }
Gets or sets a value indicating whether mouse wheel scrolling is enabled. When enabled, users can navigate through the dropdown list items by rotating the mouse wheel, changing the selected item without having to click directly on items.
public bool EnableMouseWheel { get; set; }
Gets or sets a value indicating whether UI Automation support is enabled for this control. When enabled, the control provides accessibility information to assistive technologies.
public override bool EnableUIAutomation { get; set; }
Overrides:
Implements:
Gets or sets a predicate function that determines which RadListDataItem objects should be visible in the dropdown list. Items for which the predicate returns true will be displayed, while items for which it returns false will be hidden. This provides programmatic filtering capability.
[Browsable(false)]
public Predicate<RadListDataItem> Filter { get; set; }
Gets or sets a string expression that determines which items will be visible in the dropdown list. The filter expression is a string-based alternative to the Filter predicate, allowing filtering to be specified declaratively in design-time properties or through data binding.
[Browsable(true)]
public string FilterExpression { get; set; }
Gets or sets an object that implements IFindStringComparer interface. This property provides custom string comparison functionality used by the FindString methods when searching for items in the drop-down list. It allows you to implement custom search logic such as case-insensitive or culture-specific comparisons.
[Browsable(false)]
public IFindStringComparer FindStringComparer { get; set; }
Gets or sets a value indicating whether items should be resized to fit the available width in the drop-down list. When enabled, items will automatically adjust their width to match the width of the dropdown area, preventing horizontal scrolling and ensuring all content fits within the visible area.
public virtual bool FitItemsToSize { get; set; }
Gets or sets the font used for text display in the control. This property affects the font of the root element. Setting this property to null resets the font to the default value defined in the currently applied theme. This provides consistent typography styling across themed controls.
public override Font Font { get; set; }
Overrides:
Gets or sets an object that implements the IFormatProvider interface. This object is used when formatting items displayed in the dropdown list. The default provider is CultureInfo.CurrentCulture, which formats items according to the current system locale settings.
[Browsable(false)]
public virtual IFormatProvider FormatInfo { get; set; }
Gets or sets a format string that will be used for visual item formatting if FormattingEnabled is set to true. The format string follows the .NET formatting syntax (like "{0:C}") and applies to the display value of each item, allowing for custom formatting of numeric values, dates, or other data types.
public virtual string FormatString { get; set; }
Gets or sets a value that determines whether text formatting is enabled for the visual items. When enabled, the control applies the format specified by FormatString to the display values, allowing for custom formatting such as currency symbols, date formats, or numeric precision.
public virtual bool FormattingEnabled { get; set; }
Gets a value indicating whether there is either a Filter predicate or a FilterExpression string currently set and active. This property helps determine if the items in the dropdown are being filtered by any mechanism.
[Browsable(false)]
public bool IsFilterActive { get; }
Gets a value indicating whether the dropdown popup portion of the control is currently visible. This read-only property can be used to determine if the dropdown list is open or closed.
[Browsable(false)]
public virtual bool IsPopupVisible { get; }
Gets or sets the height in pixels for all items in the dropdown list. This property determines the uniform height of each item in the list, affecting the overall appearance and spacing. Note that this property is ignored when AutoSizeItems is set to true.
[Browsable(true)]
public int ItemHeight { get; set; }
Gets the collection of RadListDataItem objects that represent the items displayed in this dropdown list. This collection can be modified directly to add, remove, or modify items in the dropdown.
public virtual RadListDataItemCollection Items { get; }
ItemsSortComparer
IComparer<RadListDataItem>
Gets or sets an object that implements IComparer<T> which is used when sorting items. This property allows you to define a custom sorting algorithm for the items displayed in the drop-down list, providing greater flexibility than the default alphabetical sorting.
[Browsable(false)]
public IComparer<RadListDataItem> ItemsSortComparer { get; set; }
Gets or sets the RadListElement that manages the list portion of this dropdown control. This element is responsible for displaying, arranging, and managing the list items in the dropdown.
[Browsable(false)]
public RadListElement ListElement { get; set; }
Gets or sets the maximum number of items to be shown in the drop-down portion of the RadDropDownList without requiring scrolling. A value of 0 means that all items will be shown without a scrollbar if space permits; otherwise, the dropdown will display the specified number of items and provide scrolling for additional items.
public virtual int MaxDropDownItems { get; set; }
Gets or sets the maximum number of characters the user can type or paste into the text box portion of the RadDropDownList control. This property primarily affects the control when using DropDown style, as it limits the length of text that can be manually entered. Has no effect when the control is in DropDownList mode.
public virtual int MaxLength { get; set; }
Gets or sets the text that is displayed when RadDropDownList has no text set. This placeholder text appears in a grayed-out font when the control has focus but no value has been entered or selected, providing users with guidance on what to enter or select.
public string NullText { get; set; }
Gets a reference to the drop-down popup form associated with this RadDropDownList. This property provides access to the actual popup control, allowing you to customize its appearance, behavior, and content at runtime or during design.
[Browsable(false)]
public virtual RadEditorPopupControlBase Popup { get; }
Gets or sets a value indicating whether the dropdown list is read-only. When set to true, users can view the content but cannot change the selection or edit the text in the control. This is useful for display-only scenarios where user interaction should be prevented.
[Browsable(true)]
public virtual bool ReadOnly { get; set; }
Gets or sets the zero-based index of the currently selected item in the dropdown list. A value of -1 indicates that no item is selected. Setting this property will cause the SelectedIndexChanging and SelectedIndexChanged events to fire and will update the displayed text to match the newly selected item.
[Browsable(false)]
[Bindable(true)]
public virtual int SelectedIndex { get; set; }
Gets or sets the currently selected RadListDataItem in the dropdown list. This is the actual item object rather than just its value or index. Setting this property will trigger the selection changed events and update the displayed text.
[Browsable(false)]
[Bindable(true)]
public virtual RadListDataItem SelectedItem { get; set; }
Provides a read-only collection of the currently selected items in the dropdown list. While the RadDropDownList typically allows only single selection, this property maintains interface compatibility with other list controls.
public IReadOnlyCollection<RadListDataItem> SelectedItems { get; }
Gets or sets the text that is currently selected in the editable portion of the DropDownList. This property is only applicable when the control has an editable text portion. Setting this property replaces the selected text with the specified value.
[Browsable(false)]
public string SelectedText { get; set; }
Gets or sets the value of the currently selected item in the dropdown list. This corresponds to the value of the property specified by ValueMember. Setting this property to a value that is shared by multiple items will select the first matching item. Setting this property will trigger the selection changed events.
[Browsable(false)]
[Bindable(true)]
public virtual object SelectedValue { get; set; }
Gets or sets the number of characters selected in the editable portion of the drop-down list. This property allows you to determine or control the length of the current text selection. A value of 0 indicates that no text is selected (the caret is positioned without selection).
[Browsable(false)]
public int SelectionLength { get; set; }
Gets or sets the starting character position of the current text selection in the editable portion of the drop-down list. The index is zero-based, meaning the first character position is 0, not 1. This property is only applicable when the control has an editable text portion.
[Browsable(false)]
public int SelectionStart { get; set; }
Gets or sets a value indicating whether the control should automatically select the next item when the user double-clicks in the edit box area. When enabled, this feature allows users to cycle through available options without opening the dropdown, providing a quick way to browse through sequential items in the list.
[Browsable(true)]
public virtual bool SelectNextOnDoubleClick { get; set; }
Gets or sets a value indicating whether the RadListDataItem image will be displayed in the editor element when DropDownStyle is set to DropDownList. When enabled, images associated with list items will be shown alongside text in the main control area.
public virtual bool ShowImageInEditorArea { get; set; }
Gets or sets the sort style for items in the dropdown list. It can be Ascending, Descending, or None. When sorting is enabled, items are ordered based on the property specified by DisplayMember. This affects how items appear in the dropdown portion of the control.
public virtual SortStyle SortStyle { get; set; }
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. The behavior varies based on the current DropDownStyle: when set to DropDownList, the focus applies to the text box element, otherwise it applies to the control itself.
[Browsable(false)]
public bool TabStop { get; set; }
true if the user can give the focus to the control using the TAB key; otherwise, false.
Gets or sets the text associated with this control. The text represents the content displayed in the editable portion of the drop-down list control.
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Overrides:
Gets the UI Automation Provider that exposes this control to UI Automation clients. This property is used by accessibility technologies to interact with the control.
public IRadRawElementProviderFragmentRoot UIAutomationProvider { get; }
Implements:
Gets or sets the property name used to determine the underlying value of each item in the dropdown list. When the control is bound to a data source, this property specifies which field from the data source should be used as the value when an item is selected. This value is accessible through the SelectedValue property. Cannot be set to null - will be converted to an empty string.
public string ValueMember { get; set; }
Methods
Suspends visual updates of the control. Call this method before making multiple changes to the control to prevent flickering and improve performance. Each call to BeginUpdate must be paired with a corresponding call to EndUpdate.
public virtual void BeginUpdate()
Programmatically hides the drop-down popup if it is currently displayed on the screen. This method allows you to close the list programmatically without user interaction, which is useful in scenarios where you need to dismiss the popup based on custom logic.
public virtual void CloseDropDown()
Checks whether the element's theme is defined by the control.
public override bool ControlDefinesThemeForElement(RadElement element)
The element to should be checked.
Returns:true if the control defines theme for this element, false otherwise.
Overrides:
If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.
Creates and returns an accessibility object for this control. This method is used by accessibility technologies like screen readers to interact with the control.
protected override AccessibleObject CreateAccessibilityInstance()
An AccessibleObject representing this control for accessibility purposes.
Overrides:
Creates and initializes the child elements of the RadDropDownList control. This method creates a new RadDropDownListElement, adds it to the control's element hierarchy, and wires up the necessary events.
protected override void CreateChildItems(RadElement parent)
The parent element that will contain the child items.
Overrides:
Creates a new instance of the RadDropDownListElement class that will be used as the core element of this dropdown list control. Override this method in derived classes to provide custom dropdown element implementations.
protected virtual RadDropDownListElement CreateDropDownListElement()
A new instance of the RadDropDownListElement class.
Defers the visual refresh of the control until the returned IDisposable object is disposed. This method provides a convenient way to use the using statement to temporarily suspend updates during a block of code that makes multiple changes to the control.
public virtual IDisposable DeferRefresh()
An IDisposable object that, when disposed, will resume visual updates and refresh the control.
Releases the resources used by the RadDropDownList control.
protected override void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Handles the key down event of the dropdown list element.
protected virtual void dropDownListElement_KeyDown(object sender, KeyEventArgs e)
The source of the event.
eKeyEventArgsThe key event data.
Handles the key press event of the dropdown list element.
protected virtual void dropDownListElement_KeyPress(object sender, KeyPressEventArgs e)
The source of the event.
eKeyPressEventArgsThe key press event data.
Handles the key up event of the dropdown list element.
protected virtual void dropDownListElement_KeyUp(object sender, KeyEventArgs e)
The source of the event.
eKeyEventArgsThe key event data.
Handles the popup closed event of the dropdown list element.
protected virtual void element_PopupClosed(object sender, RadPopupClosedEventArgs args)
The source of the event.
argsRadPopupClosedEventArgsThe popup closed event data.
Handles the popup closing event of the dropdown list element.
protected virtual void element_PopupClosing(object sender, RadPopupClosingEventArgs args)
The source of the event.
argsRadPopupClosingEventArgsThe popup closing event data.
Handles the popup opening event of the dropdown list element.
protected virtual void element_PopupOpening(object sender, CancelEventArgs e)
The source of the event.
eCancelEventArgsThe event data that allows cancellation of the opening.
Resumes layout operations after initialization of the RadDropDownList is complete. Applies the binding context to ensure proper data binding between the control and its data source.
public override void EndInit()
Overrides:
Resumes visual updates of the control after a call to BeginUpdate. Call this method after completing multiple changes to the control to resume visual updates and apply all pending changes at once. Each call to EndUpdate must be preceded by a corresponding call to BeginUpdate.
public virtual void EndUpdate()
Searches for an item in the list that exactly matches the specified text.
public RadListDataItem FindItemExact(string text, bool caseSensitive)
The text to search for in the list items.
caseSensitiveboolA value indicating whether the search should be case-sensitive.
Returns:The RadListDataItem that exactly matches the specified text, or null if no match is found.
Searches for an item in the list that matches the specified string according to the current FindStringComparer. By default, the FindStringComparer uses the System.String.StartsWith() method for string comparison. This method starts searching from the specified index, and if it reaches the end of the Items collection, it wraps to the beginning and continues until it reaches one position before the starting index.
Searches for an item in the list that matches the specified string according to the current FindStringComparer. By default, the FindStringComparer uses the System.String.StartsWith() method for string comparison. This method starts searching from index 0, and if it reaches the end of the Items collection, it wraps to the beginning and continues until it has searched the entire collection.
Searches for an item in the list that exactly matches the specified string. Unlike FindString, this method requires an exact match rather than a partial match. This method starts searching from the specified index, and if it reaches the end of the Items collection, it wraps to the beginning and continues until it reaches one position before the starting index.
Searches for an item in the list that exactly matches the specified string. Unlike FindString, this method requires an exact match rather than a partial match. The search starts from index 0 and searches the entire list.
Searches for an item in the list that matches the specified string according to the current FindStringComparer, but unlike FindString, it does not wrap around to the beginning when the end of the list is reached. The search starts from the specified index and continues until the end of the list.
Searches for an item in the list that matches the specified string according to the current FindStringComparer, but unlike FindString, it does not wrap around to the beginning when the end of the list is reached. The search starts from index 0 and continues until the end of the list.
protected virtual void OnCreatingVisualItem(object sender, CreatingVisualListItemEventArgs args)
Raises the DataBindingComplete event. This method is called after a data binding operation completes, allowing derived classes to handle this event without attaching a delegate.
protected virtual void OnDataBindingComplete(object sender, ListBindingCompleteEventArgs e)
The source of the event.
eListBindingCompleteEventArgsAn ListBindingCompleteEventArgs instance that contains information about the binding operation.
Raises the ItemDataBinding event.
protected virtual void OnItemDataBinding(object sender, ListItemDataBindingEventArgs args)
The source of the event.
argsListItemDataBindingEventArgsA ListItemDataBindingEventArgs that contains the event data.
Raises the ItemDataBound event.
protected virtual void OnItemDataBound(object sender, ListItemDataBoundEventArgs args)
The source of the event.
argsListItemDataBoundEventArgsA ListItemDataBoundEventArgs that contains the event data.
Raises the RightToLeftChanged event. This method is called when the RightToLeft property value changes, allowing the control to update its appearance and layout for right-to-left languages.
Raises the SortStyleChanged event.
protected virtual void OnSortStyleChanged(SortStyle sortStyle)
The new sort style that was applied to the dropdown list.
Raises the VisualItemFormatting event.
protected virtual void OnVisualItemFormatting(RadListVisualItem item)
The RadListVisualItem being formatted.
protected override void ProcessCodedUIMessage(ref IPCMessage request)
Overrides:
Forces a re-evaluation and refresh of the current data source. This method is useful when the underlying data in the data source has changed and you need the control to reflect these changes without explicitly reassigning the DataSource property.
public void Rebind()
protected override void ResetBackColorThemeOverrides()
Overrides:
protected override void ResetForeColorThemeOverrides()
Overrides:
Selects all items in the drop-down list if the SelectionMode property allows multiple selection. This method can be used to quickly select all available options in the list when working with multi-select drop-down lists.
public void SelectAll()
Thrown when attempting to select all items in a selection mode that doesn't support multiple selection.
Selects all the text in the editable portion of the RadDropDownList. This is only applicable when DropDownStyle is set to DropDown. This method provides a convenient way to select the entire text content for quick editing or replacement.
public void SelectAllText()
Selects a range of text in the editable portion of the RadDropDownList. This is only applicable when DropDownStyle is set to DropDown. Use this method to programmatically select text in the control for operations like cut, copy, or deletion.
protected override void SetBackColorThemeOverrides()
Overrides:
protected override void SetForeColorThemeOverrides()
Overrides:
Programmatically displays the drop-down popup on the screen, showing the list of available items. This method is equivalent to clicking the drop-down button with the mouse. It allows you to open the list programmatically without user interaction.
public virtual void ShowDropDown()
Events
Occurs when the control needs to create visual items to represent data items in the view. This event provides the opportunity to create custom visual representations of list items, allowing for advanced visual customization beyond the standard appearance. The event fires both during initial rendering and when the control is resized.
public event CreatingVisualListItemEventHandler CreatingVisualListItem
Occurs when a data binding operation on the control has been completed. This event provides an opportunity to perform additional processing after items have been loaded from the data source, such as selecting a default item or performing custom filtering.
[Browsable(true)]
public event ListBindingCompleteEventHandler DataBindingComplete
Occurs before each RadListDataItem is bound to a data item from the data source. This event is raised once for each item in the data source during the data binding process, allowing you to customize how each item is created and initialized before it appears in the list. You can provide your own custom RadListDataItem implementation through the event arguments.
public event ListItemDataBindingEventHandler ItemDataBinding
Occurs after each RadListDataItem has been bound to a data item from the data source. This event is raised once for each item in the data source after the initial binding process is complete, allowing you to perform additional customization or formatting of the list item based on the bound data.
public event ListItemDataBoundEventHandler ItemDataBound
Occurs when a key is pressed while the control has focus. This event is raised before the KeyPress event and can be used to detect and handle special keys such as function keys, arrow keys, and other non-character keys.
public event KeyEventHandler KeyDown
Occurs when a character key is pressed while the control has focus. This event can be used to intercept and handle specific character inputs before they are processed by the control, enabling custom input validation or special key handling.
public event KeyPressEventHandler KeyPress
Occurs when a key is released while the control has focus. This event is useful for detecting when the user releases a keyboard key, which can be used for implementing custom keyboard navigation or shortcuts.
public event KeyEventHandler KeyUp
Occurs when the drop-down popup has been fully closed. This event is raised after the popup is no longer visible to the user. The event arguments contain information about the cause of the closing action, which can be used to perform different operations based on how the popup was closed.
public virtual event RadPopupClosedEventHandler PopupClosed
Occurs just before the drop-down popup is about to be closed. This event provides an opportunity to cancel the closing operation or to perform cleanup operations before the popup disappears. The event arguments contain information about the cause of the closing action.
public virtual event RadPopupClosingEventHandler PopupClosing
Occurs when the drop-down popup has been fully opened and displayed to the user. This event can be used to perform initialization tasks after the popup becomes visible, such as adjusting scroll position or focusing specific items.
public virtual event EventHandler PopupOpened
Occurs just before the drop-down popup is displayed to the user. This event can be used to cancel the opening of the popup or to perform last-minute modifications to the items displayed in the list before they become visible.
public virtual event CancelEventHandler PopupOpening
Occurs when the index of the currently selected item in the drop-down list changes. This event is raised when the user selects a new item from the list or when the SelectedIndex property is programmatically changed. The event arguments provide information about the previous and current selection position.
public event PositionChangedEventHandler SelectedIndexChanged
Occurs just before the selected index in the drop-down list is about to change. This event allows you to cancel the selection change by setting the Cancel property of the event arguments to true, providing a way to validate or restrict item selection based on custom business logic.
public event PositionChangingEventHandler SelectedIndexChanging
Occurs when the value of the currently selected item in the drop-down list changes. Unlike the SelectedIndexChanged event, this event only fires when the actual value changes, not just the index. For example, if two different items in the list have the same value, selecting between them will not trigger this event.
public event EventHandler SelectedValueChanged
Occurs when the sorting style of the drop-down list items changes. This event allows you to respond to changes in how items are sorted in the list, which can be useful for performing additional operations after the sort order has changed.
public event SortStyleChangedEventHandler SortStyleChanged
Occurs when the Text property value changes. This event is raised after the text displayed in the control is modified either by user input or programmatically.
public event EventHandler TextChanged
Occurs when a visual list item needs to be formatted. This event fires when a property of a visible data item changes or when a visual item is associated with a new data item (such as during scrolling). It provides the opportunity to customize the appearance of list items based on their content or state.
public event VisualListItemFormattingEventHandler VisualListItemFormatting