ClassRadDomainUpDown
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
RadDomainUpDown()
Declaration
public RadDomainUpDown()
Properties
AutoComplete
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.
AutoSize
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.
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
DomainUpDownElement
Gets the main element that provides the domain up-down functionality. This element encapsulates the actual UI logic and behavior of the RadDomainUpDown control.
Declaration
[Browsable(true)]
public RadDomainUpDownElement DomainUpDownElement { get; }
Property Value
Items
Gets the collection of items that are displayed in the domain up-down control. This collection contains RadListDataItem objects that represent the available choices.
Declaration
public override RadListDataItemCollection Items { get; }
Property Value
Overrides
ReadOnly
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.
Methods
CreateAccessibilityInstance()
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.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
An AccessibleObject that provides accessibility support for this control.
Overrides
CreateChildItems(RadElement)
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.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent RadElement that will contain the child elements.
Overrides
CreateDropDownListElement()
Creates the main dropdown list element that provides the core functionality for the domain up-down control.
Declaration
protected override RadDropDownListElement CreateDropDownListElement()
Returns
A new instance of RadDomainUpDownElement.
Overrides
MoveDown()
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.
Declaration
public void MoveDown()
MoveDown(bool)
Selects the next item in the list with the option to specify wrapping behavior.
Declaration
public void MoveDown(bool wrap)
Parameters
wrap
Specifies whether the navigation will wrap from the last item to the first item.
MoveUp()
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.
Declaration
public void MoveUp()
MoveUp(bool)
Selects the previous item in the list with the option to specify wrapping behavior.
Declaration
public void MoveUp(bool wrap)
Parameters
wrap
Specifies whether the navigation will wrap from the first item to the last item.