RadDomainUpDown
Represents a spin control that displays a collection of text values through which users can navigate using up and down buttons. The RadDomainUpDown class is essentially a wrapper for the RadDomainUpDownElement. All UI and logic functionality is implemented by the RadDomainUpDownElement class, while RadDomainUpDown acts to transfer events to and from its RadDomainUpDownElement instance.
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 RadDomainUpDown : RadDropDownList, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadDropDownListRadDomainUpDown...
Implements:
Inherited Members
Constructors
public RadDomainUpDown()
Properties
Gets or sets a value indicating whether auto-complete is enabled. When enabled, the matched item's text will be appended to the input in the editor.
public bool AutoComplete { get; set; }
Gets or sets a value indicating whether the control automatically adjusts its size to fit its content. When enabled, the control will resize itself to properly display its content and selected item.
[Browsable(true)]
public override bool AutoSize { get; set; }
Overrides:
Gets the main element that provides the domain up-down functionality. This element encapsulates the actual UI logic and behavior of the RadDomainUpDown control.
[Browsable(true)]
public RadDomainUpDownElement DomainUpDownElement { get; }
Gets the collection of items that are displayed in the domain up-down control. This collection contains RadListDataItem objects that represent the available choices.
public override RadListDataItemCollection Items { get; }
Overrides:
Gets or sets a value indicating whether typing is enabled inside the text box. When set to true, the control becomes read-only and users can only navigate using the up/down buttons.
public bool ReadOnly { get; set; }
Methods
Creates an accessibility object for this domain up-down control to support assistive technologies. When EnableRadAccessibilityObjects is enabled, returns a custom accessibility object; otherwise, returns the base implementation.
protected override AccessibleObject CreateAccessibilityInstance()
An AccessibleObject that provides accessibility support for this control.
Overrides:
Creates the child elements of the control by instantiating and configuring the internal RadDomainUpDownElement This method sets up the domain up-down element and establishes its basic properties.
protected override void CreateChildItems(RadElement parent)
The parent RadElement that will contain the child elements.
Overrides:
Creates the main dropdown list element that provides the core functionality for the domain up-down control.
protected override RadDropDownListElement CreateDropDownListElement()
A new instance of RadDomainUpDownElement.
Overrides:
Selects the next item in the list. If the Wrap property is enabled and the last item is currently selected, this method will navigate to the first item in the collection.
public void MoveDown()
Selects the next item in the list with the option to specify wrapping behavior.
public void MoveDown(bool wrap)
Specifies whether the navigation will wrap from the last item to the first item.
Selects the previous item in the list. If the Wrap property is enabled and the first item is currently selected, this method will navigate to the last item in the collection.
public void MoveUp()
Selects the previous item in the list with the option to specify wrapping behavior.
public void MoveUp(bool wrap)
Specifies whether the navigation will wrap from the first item to the last item.