ClassCommandBarDropDownList
Represents a drop down list in CommandBarStripElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CommandBarDropDownList : RadCommandBarBaseItem, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCommandBarVisualElementRadCommandBarBaseItemCommandBarDropDownList
Implements:
Inherited Members
Constructors
CommandBarDropDownList()
Declaration
public CommandBarDropDownList()
Properties
AutoCompleteDataSource
Gets or sets the object that is responsible for providing data objects for the AutoComplete Suggest.
Declaration
[Browsable(false)]
public object AutoCompleteDataSource { get; set; }
Property Value
AutoCompleteDisplayMember
Gets or sets a string which will be used to get a text string for each visual item. This value can not be set to null. Setting it to null will cause it to contain an empty string.
Declaration
[Browsable(false)]
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string AutoCompleteDisplayMember { get; set; }
Property Value
AutoCompleteMode
Specifies the mode for the automatic completion feature used in the DropDownList and the TextBox controls.
Declaration
[Browsable(true)]
public AutoCompleteMode AutoCompleteMode { get; set; }
Property Value
AutoCompleteValueMember
Gets or sets the string through which the SelectedValue property will be determined. This property can not be set to null. Setting it to null will cause it to contain an empty string.
Declaration
[Browsable(false)]
public string AutoCompleteValueMember { get; set; }
Property Value
AutoSize
Determines whether control's height will be determined automatically, depending on the current Font.
Declaration
public override bool AutoSize { get; set; }
Property Value
Overrides
AutoSizeItems
Gets or sets a value that indicates whether items will be sized according to their content. If this property is true the user can set the Height property of each individual RadListDataItem in the Items collection in order to override the automatic sizing.
Declaration
[Browsable(true)]
public bool AutoSizeItems { get; set; }
Property Value
BindingContext
Gets or sets the BindingContext for the object.
Declaration
[Browsable(false)]
public override BindingContext BindingContext { get; set; }
Property Value
Overrides
CaseSensitive
Gets or sets a value indicating whether string comparisons are case-sensitive.
Declaration
[Browsable(true)]
public bool CaseSensitive { get; set; }
Property Value
CommandBarDropDownListElement
Gets or sets the hosted RadDropDownListElement.
Declaration
public RadDropDownListElement CommandBarDropDownListElement { get; set; }
Property Value
DataBindings
Gets the collection of data-binding objects for this IBindableComponent.
Declaration
public override ControlBindingsCollection DataBindings { get; }
Property Value
Overrides
DataSource
Gets or sets the object that is responsible for providing data objects for the RadListElement.
DefaultItemsCountInDropDown
DefaultItems count in drop-down portion of the RadDropDownList.
Declaration
[Browsable(true)]
public int DefaultItemsCountInDropDown { get; set; }
Property Value
DisplayMember
Gets or sets a string which will be used to get a text string for each visual item. This value can not be set to null. Setting it to null will cause it to contain an empty string.
Declaration
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string DisplayMember { get; set; }
Property Value
DropDownAnimationEasing
Gets or sets the easing type of the animation.
Declaration
[Browsable(true)]
public RadEasingType DropDownAnimationEasing { get; set; }
Property Value
DropDownAnimationEnabled
Gets or sets a value indicating whether the RadDropDownList will be animated when displaying.
Declaration
public bool DropDownAnimationEnabled { get; set; }
Property Value
DropDownAnimationFrames
Gets or sets the number of frames that will be used when the DropDown is being animated.
DropDownHeight
Gets or sets the height in pixels of the drop-down portion of the RadDropDownList.
DropDownListElement
Represent the DropDownListElement element
Declaration
[Browsable(true)]
public RadDropDownListElement DropDownListElement { get; set; }
Property Value
DropDownMinSize
Declaration
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Property Value
DropDownSizingMode
Gets or sets a value of the SizingMode enumeration. This value determines how the pop-up form can be resized: vertically, horizontally or both.
Declaration
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Property Value
DropDownStyle
Gets or sets a value specifying the style of the DropDownList
Declaration
public RadDropDownStyle DropDownStyle { get; set; }
Property Value
EnableMouseWheel
Enable or disable Mouse Wheel Scrolling.
Filter
Gets or sets a predicate which filters which items can be visible.
Declaration
[Browsable(false)]
public Predicate<RadListDataItem> Filter { get; set; }
Property Value
FilterExpression
Gets or sets a filter expression which determines which items will be visible.
Declaration
[Browsable(true)]
public string FilterExpression { get; set; }
Property Value
FormatInfo
Gets or sets an object that implements the IFormatProvider interface. This object is used when formatting items. The default object is CultureInfo.CurrentCulture.
Declaration
[Browsable(false)]
public IFormatProvider FormatInfo { get; set; }
Property Value
FormatString
Gets or sets a format string that will be used for visual item formatting if FormattingEnabled is set to true.
FormattingEnabled
Gets or sets a value that determines whether text formatting is enabled for the visual items.
IsFilterActive
Gets a value indicating whether there is a Filter or FilterExpression set.
Declaration
[Browsable(false)]
public bool IsFilterActive { get; }
Property Value
IsPopupVisible
Indicating whether the Popup part of the control are displayed.
Declaration
[Browsable(false)]
public bool IsPopupVisible { get; }
Property Value
Items
Gets the items collection of the RadDropDownListElement.
Declaration
public RadListDataItemCollection Items { get; }
Property Value
ListElement
Represent the List element
Declaration
[Browsable(false)]
public RadListElement ListElement { get; }
Property Value
MaxDropDownItems
Gets or sets the maximum number of items to be shown in the drop-down portion of the RadDropDownList.
MaxLength
Gets or sets the maximum number of characters the user can type or paste into the text box control.
NullText
Gets or sets the text that is displayed when RadDropDownList has no text set.
Popup
Gets a reference to the drop down form associated with this RadDropDownList.
Declaration
[Browsable(false)]
public RadEditorPopupControlBase Popup { get; }
Property Value
SelectNextOnDoubleClick
Rotate items on double click in the edit box part
Declaration
[Browsable(true)]
public bool SelectNextOnDoubleClick { get; set; }
Property Value
SelectedIndex
Gets or sets the position of the selection. Setting this property will cause the SelectedIndexChanging and SelectedIndexChanged events to fire.
Declaration
[Browsable(false)]
public int SelectedIndex { get; set; }
Property Value
SelectedItem
Gets or sets the selected logical list item. Setting this property will cause the selection events to fire.
Declaration
[Browsable(false)]
[Bindable(true)]
public RadListDataItem SelectedItem { get; set; }
Property Value
SelectedItems
Provides a readonly interface to the currently selected items.
Declaration
public IReadOnlyCollection<RadListDataItem> SelectedItems { get; }
Property Value
SelectedText
Gets or sets the text that is selected in the editable portion of the DropDownList.
Declaration
[Browsable(false)]
public string SelectedText { get; set; }
Property Value
SelectedValue
Gets or sets the currently selected value. Setting the SelectedValue to a value that is shared between many items causes the first item to be selected. This property triggers the selection events.
Declaration
[Browsable(false)]
[Bindable(true)]
public object SelectedValue { get; set; }
Property Value
SelectionLength
Gets or sets the number of characters selected in the editable portion of the combo box.
Declaration
[Browsable(false)]
public int SelectionLength { get; set; }
Property Value
SelectionStart
Gets or sets the starting index of text selected in the combo box.
Declaration
[Browsable(false)]
public int SelectionStart { get; set; }
Property Value
Text
Gets or sets the text associated with this item.
Declaration
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Property Value
Overrides
ValueMember
Gets or sets the string through which the SelectedValue property will be determined. This property can not be set to null. Setting it to null will cause it to contain an empty string.
VisibleInStrip
Show or hide item from the strip
Declaration
[Browsable(true)]
public override bool VisibleInStrip { get; set; }
Property Value
Overrides
Methods
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
SelectAllText()
Selects all the text in the editable portion of the DropDownList box.
Declaration
public void SelectAllText()
SelectText(int, int)
Selects a range of text in the editable portion of the combo box
Events
CreatingVisualItem
Declaration
public event CreatingVisualListItemEventHandler CreatingVisualItem
Event Value
ItemDataBinding
Declaration
public event ListItemDataBindingEventHandler ItemDataBinding
Event Value
ItemDataBound
Declaration
public event ListItemDataBoundEventHandler ItemDataBound
Event Value
KeyDown
Occurs when the CommandBarTextBox has focus and the user presses a key down
KeyPress
Occurs when the CommandBarTextBox has focus and the user presses a key
Declaration
public event KeyPressEventHandler KeyPress
Event Value
KeyUp
Occurs when the CommandBarTextBox has focus and the user releases the pressed key up
PopupClosed
Occurs when the popup is closed.
Declaration
public event RadPopupClosedEventHandler PopupClosed
Event Value
PopupClosing
Occurs when the popup is about to be closed.
Declaration
public event RadPopupClosingEventHandler PopupClosing
Event Value
PopupOpened
Occurs when the popup is opened.
PopupOpening
Occurs when the popup is about to be opened.
Declaration
public event CancelEventHandler PopupOpening
Event Value
SelectedIndexChanged
Declaration
public event PositionChangedEventHandler SelectedIndexChanged
Event Value
SelectedIndexChanging
Declaration
public event PositionChangingEventHandler SelectedIndexChanging
Event Value
SelectedValueChanged
Declaration
public event ValueChangedEventHandler SelectedValueChanged
Event Value
SortStyleChanged
Declaration
public event SortStyleChangedEventHandler SortStyleChanged
Event Value
TextChanged
Occurs when the Text property value changes.
TextChanging
Occurs when the Text property value is about to be changed.
Declaration
public event TextChangingEventHandler TextChanging
Event Value
VisualItemFormatting
Declaration
public event VisualListItemFormattingEventHandler VisualItemFormatting
Event Value