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
public CommandBarDropDownList()
Properties
Gets or sets the object that is responsible for providing data objects for the AutoComplete Suggest.
[Browsable(false)]
public object AutoCompleteDataSource { get; set; }
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.
[Browsable(false)]
[TypeConverter("System.Windows.Forms.Design.DataMemberFieldConverter, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
public string AutoCompleteDisplayMember { get; set; }
Specifies the mode for the automatic completion feature used in the DropDownList and the TextBox controls.
[Browsable(true)]
public AutoCompleteMode AutoCompleteMode { get; set; }
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.
[Browsable(false)]
public string AutoCompleteValueMember { get; set; }
Determines whether control's height will be determined automatically, depending on the current Font.
public override bool AutoSize { get; set; }
Overrides:
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.
[Browsable(true)]
public bool AutoSizeItems { get; set; }
Gets or sets the BindingContext for the object.
[Browsable(false)]
public override BindingContext BindingContext { get; set; }
Overrides:
Gets or sets a value indicating whether string comparisons are case-sensitive.
[Browsable(true)]
public bool CaseSensitive { get; set; }
Gets or sets the hosted RadDropDownListElement.
public RadDropDownListElement CommandBarDropDownListElement { get; set; }
Gets the collection of data-binding objects for this IBindableComponent.
public override ControlBindingsCollection DataBindings { get; }
Overrides:
Gets or sets the object that is responsible for providing data objects for the RadListElement.
public object DataSource { get; set; }
DefaultItems count in drop-down portion of the RadDropDownList.
[Browsable(true)]
public int DefaultItemsCountInDropDown { get; set; }
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.
[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 of the animation.
[Browsable(true)]
public RadEasingType DropDownAnimationEasing { get; set; }
Gets or sets a value indicating whether the RadDropDownList will be animated when displaying.
public bool DropDownAnimationEnabled { get; set; }
Gets or sets the number of frames that will be used when the DropDown is being animated.
public int DropDownAnimationFrames { get; set; }
Gets or sets the height in pixels of the drop-down portion of the RadDropDownList.
public int DropDownHeight { get; set; }
Represent the DropDownListElement element
[Browsable(true)]
public RadDropDownListElement DropDownListElement { get; set; }
public Size DropDownMaxSize { get; set; }
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Gets or sets a value of the SizingMode enumeration. This value determines how the pop-up form can be resized: vertically, horizontally or both.
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Gets or sets a value specifying the style of the DropDownList
public RadDropDownStyle DropDownStyle { get; set; }
Enable or disable Mouse Wheel Scrolling.
public bool EnableMouseWheel { get; set; }
Gets or sets a predicate which filters which items can be visible.
[Browsable(false)]
public Predicate<RadListDataItem> Filter { get; set; }
Gets or sets a filter expression which determines which items will be visible.
[Browsable(true)]
public string FilterExpression { get; set; }
public bool FitItemsToSize { get; set; }
Gets or sets an object that implements the IFormatProvider interface. This object is used when formatting items. The default object is CultureInfo.CurrentCulture.
[Browsable(false)]
public IFormatProvider FormatInfo { get; set; }
Gets or sets a format string that will be used for visual item formatting if FormattingEnabled is set to true.
public string FormatString { get; set; }
Gets or sets a value that determines whether text formatting is enabled for the visual items.
public bool FormattingEnabled { get; set; }
Gets a value indicating whether there is a Filter or FilterExpression set.
[Browsable(false)]
public bool IsFilterActive { get; }
Indicating whether the Popup part of the control are displayed.
[Browsable(false)]
public bool IsPopupVisible { get; }
Gets the items collection of the RadDropDownListElement.
public RadListDataItemCollection Items { get; }
Represent the List element
[Browsable(false)]
public RadListElement ListElement { get; }
Gets or sets the maximum number of items to be shown in the drop-down portion of the RadDropDownList.
public int MaxDropDownItems { get; set; }
Gets or sets the maximum number of characters the user can type or paste into the text box control.
public int MaxLength { get; set; }
Gets or sets the text that is displayed when RadDropDownList has no text set.
public string NullText { get; set; }
Gets a reference to the drop down form associated with this RadDropDownList.
[Browsable(false)]
public RadEditorPopupControlBase Popup { get; }
Gets or sets the position of the selection. Setting this property will cause the SelectedIndexChanging and SelectedIndexChanged events to fire.
[Browsable(false)]
public int SelectedIndex { get; set; }
Gets or sets the selected logical list item. Setting this property will cause the selection events to fire.
[Browsable(false)]
[Bindable(true)]
public RadListDataItem SelectedItem { get; set; }
Provides a readonly interface to the currently selected items.
public IReadOnlyCollection<RadListDataItem> SelectedItems { get; }
Gets or sets the text that is selected in the editable portion of the DropDownList.
[Browsable(false)]
public string SelectedText { get; set; }
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.
[Browsable(false)]
[Bindable(true)]
public object SelectedValue { get; set; }
Gets or sets the number of characters selected in the editable portion of the combo box.
[Browsable(false)]
public int SelectionLength { get; set; }
Gets or sets the starting index of text selected in the combo box.
[Browsable(false)]
public int SelectionStart { get; set; }
Rotate items on double click in the edit box part
[Browsable(true)]
public bool SelectNextOnDoubleClick { get; set; }
Gets or sets the text associated with this item.
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Overrides:
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.
public string ValueMember { get; set; }
Show or hide item from the strip
[Browsable(true)]
public override bool VisibleInStrip { get; set; }
Overrides:
Methods
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
selects the hosted control
public void Select()
Selects all the text in the editable portion of the DropDownList box.
public void SelectAllText()
Events
public event CreatingVisualListItemEventHandler CreatingVisualItem
public event ListItemDataBindingEventHandler ItemDataBinding
public event ListItemDataBoundEventHandler ItemDataBound
Occurs when the CommandBarTextBox has focus and the user presses a key down
public event KeyEventHandler KeyDown
Occurs when the CommandBarTextBox has focus and the user presses a key
public event KeyPressEventHandler KeyPress
Occurs when the CommandBarTextBox has focus and the user releases the pressed key up
public event KeyEventHandler KeyUp
Occurs when the popup is closed.
public event RadPopupClosedEventHandler PopupClosed
Occurs when the popup is about to be closed.
public event RadPopupClosingEventHandler PopupClosing
Occurs when the popup is opened.
public event EventHandler PopupOpened
Occurs when the popup is about to be opened.
public event CancelEventHandler PopupOpening
public event PositionChangedEventHandler SelectedIndexChanged
public event PositionChangingEventHandler SelectedIndexChanging
public event ValueChangedEventHandler SelectedValueChanged
public event SortStyleChangedEventHandler SortStyleChanged
Occurs when the Text property value changes.
public event EventHandler TextChanged
Occurs when the Text property value is about to be changed.
public event TextChangingEventHandler TextChanging
public event VisualListItemFormattingEventHandler VisualItemFormatting