RadButtonTextBox
Represents a text box control with customizable buttons on the left and right sides that can be used for enhanced input scenarios requiring additional actions or functionality.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
public class RadButtonTextBox : RadTextBox, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadTextBoxBaseRadTextBoxRadButtonTextBox...
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadButtonTextBox class with default settings and empty button collections.
public RadButtonTextBox()
Properties
Gets or sets the default spacing between elements in the control, measured in pixels, which affects the visual separation of buttons and the text box.
[Browsable(true)]
public int DefaultElementsSpacing { get; set; }
Gets the collection of button items that are displayed on the left side of the text box, providing additional interactive elements before the input area.
[Browsable(true)]
[RadEditItemsAction]
public RadItemOwnerCollection LeftButtonItems { get; }
Gets the collection of button items that are displayed on the right side of the text box, allowing users to add interactive elements for enhanced functionality.
[Browsable(true)]
[RadEditItemsAction]
public RadItemOwnerCollection RightButtonItems { get; }
Gets or sets a value indicating whether the inner text box is visible, allowing the control to function as a button-only container when set to false.
[Browsable(true)]
public bool ShowTextBox { get; set; }
Gets the theme class name used by the theming system to apply visual styles, which is inherited from the base RadTextBox for consistent appearance.
public override string ThemeClassName { get; }
Overrides:
Methods
Creates and returns a new RadButtonTextBoxElement instance that serves as the core element for this control, providing the specialized functionality for button management.
protected override RadTextBoxElement CreateTextBoxElement()
A RadButtonTextBoxElement instance configured for this control.
Overrides:
Events
Occurs when any button item within the left or right button collections is clicked, providing a unified event handling mechanism for all button interactions.
public event EventHandler ItemClicked