RadPopupEditor
Represents a popup editor control that provides a text editor with an associated popup container for hosting custom content.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TelerikToolboxCategory("Editors")]
public class RadPopupEditor : RadEditorControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadEditorControlRadPopupEditor...
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadPopupEditor class.
public RadPopupEditor()
Properties
Gets or sets the associated popup container control.
public virtual RadPopupContainer AssociatedControl { get; set; }
Gets or sets whether the edit control is auto-sized
[Browsable(true)]
public override bool AutoSize { get; set; }
Overrides:
Gets the default size for the popup editor control.
protected override Size DefaultSize { get; }
Overrides:
Gets or sets the drop down maximal size.
public Size DropDownMaxSize { get; set; }
Gets or sets the drop down minimal size.
[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 virtual RadDropDownStyle DropDownStyle { get; set; }
Gets the RadDropDownListEditableAreaElement that represents the editable area.
[Browsable(false)]
public RadDropDownListEditableAreaElement EditableAreaElement { get; }
[Browsable(false)]
public RadPopupControlBase Popup { get; }
Gets the RadPopupEditorElement that represents the element hierarchy.
[Browsable(false)]
public RadPopupEditorElement PopupEditorElement { get; set; }
Gets the popup form that contains the associated control.
[Browsable(false)]
public RadPopupControlBase PopupForm { get; }
Gets or sets the TextBox visibility.
public virtual bool ShowTextBox { get; set; }
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
[Browsable(false)]
public bool TabStop { get; set; }
true if the user can give the focus to the control using the TAB key;otherwise, false. The default is true.
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Overrides:
Represents the TextBox that is hosted inside.
[Browsable(false)]
public virtual RadTextBoxElement TextBoxElement { get; }
Gets or sets the theme class name for this control.
public override string ThemeClassName { get; }
Overrides:
Methods
Creates the child items for the popup editor control.
protected override void CreateChildItems(RadElement parent)
The parent element to add the child items to.
Overrides:
Creates the popup editor element for this control.
protected virtual RadPopupEditorElement CreateElement()
A new instance of RadPopupEditorElement.
Releases the unmanaged resources used by the RadPopupEditor and optionally releases the managed resources.
protected override void Dispose(bool disposing)
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides:
Called when the control is loaded with the specified desired size.
protected override void OnLoad(Size desiredSize)
The desired size for the control.
Overrides:
Called when the theme is changed and applies the theme to the popup form.
protected override void OnThemeChanged()
Overrides:
Processes auto-size changes by adjusting the stretch behavior of the root element.
protected override void ProcessAutoSizeChanged(bool value)
true if auto-size is enabled; otherwise, false.
Overrides:
Processes command keys and handles popup closing for certain key combinations.
Resets the background color theme overrides for the popup editor elements.
protected override void ResetBackColorThemeOverrides()
Overrides:
Resets the foreground color theme overrides for the popup editor elements.
protected override void ResetForeColorThemeOverrides()
Overrides:
Sets the associated control at runtime for the popup editor.
public virtual void SetAssociatedControlRuntime(RadPopupContainer associatedControl)
The RadPopupContainer to associate with this editor.
Sets the background color theme overrides for the popup editor elements.
protected override void SetBackColorThemeOverrides()
Overrides:
Sets the foreground color theme overrides for the popup editor elements.
protected override void SetForeColorThemeOverrides()
Overrides:
Unwires the host events for the popup editor control.
protected virtual void UnwireHostEvents()
Wires the host events for the popup editor control.
protected virtual void WireHostEvents()
Events
Occurs when the popup is closed.
public event RadPopupClosedEventHandler PopupClosed
Occurs when the popup is closing.
public event RadPopupClosingEventHandler PopupClosing
Occurs when the popup is opened.
public event EventHandler PopupOpened
Occurs before the popup is opened. This event can be cancelled.
public event CancelEventHandler PopupOpening