ClassRadPopupEditor
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
RadPopupEditor()
Initializes a new instance of the RadPopupEditor class.
Declaration
public RadPopupEditor()
Properties
AssociatedControl
Gets or sets the associated popup container control.
Declaration
public virtual RadPopupContainer AssociatedControl { get; set; }
Property Value
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
DefaultSize
Gets the default size for the popup editor control.
Declaration
protected override Size DefaultSize { get; }
Property Value
Overrides
DropDownMaxSize
Gets or sets the drop down maximal size.
DropDownMinSize
Gets or sets the drop down minimal size.
Declaration
[Browsable(true)]
public Size DropDownMinSize { get; set; }
Property Value
DropDownSizingMode
Gets or sets a value of the SizingMode enumeration. This value determines how the pop-up form can be resized: vertically, horizontally or both.
Declaration
[Browsable(true)]
public SizingMode DropDownSizingMode { get; set; }
Property Value
DropDownStyle
Gets or sets a value specifying the style of the DropDownList
Declaration
public virtual RadDropDownStyle DropDownStyle { get; set; }
Property Value
EditableAreaElement
Gets the RadDropDownListEditableAreaElement that represents the editable area.
Declaration
[Browsable(false)]
public RadDropDownListEditableAreaElement EditableAreaElement { get; }
Property Value
Popup
Declaration
[Browsable(false)]
public RadPopupControlBase Popup { get; }
Property Value
PopupEditorElement
Gets the RadPopupEditorElement that represents the element hierarchy.
Declaration
[Browsable(false)]
public RadPopupEditorElement PopupEditorElement { get; set; }
Property Value
PopupForm
Gets the popup form that contains the associated control.
Declaration
[Browsable(false)]
public RadPopupControlBase PopupForm { get; }
Property Value
ShowTextBox
Gets or sets the TextBox visibility.
TabStop
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
Declaration
[Browsable(false)]
public bool TabStop { get; set; }
Property Value
true if the user can give the focus to the control using the TAB key;otherwise, false. The default is true.
Text
Declaration
[Browsable(true)]
[Bindable(true)]
[SettingsBindable(true)]
public override string Text { get; set; }
Property Value
Overrides
TextBoxElement
Represents the TextBox that is hosted inside.
Declaration
[Browsable(false)]
public virtual RadTextBoxElement TextBoxElement { get; }
Property Value
ThemeClassName
Gets or sets the theme class name for this control.
Declaration
public override string ThemeClassName { get; }
Property Value
Overrides
Methods
CreateChildItems(RadElement)
Creates the child items for the popup editor control.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent element to add the child items to.
Overrides
CreateElement()
Creates the popup editor element for this control.
Declaration
protected virtual RadPopupEditorElement CreateElement()
Returns
A new instance of RadPopupEditorElement.
Dispose(bool)
Releases the unmanaged resources used by the RadPopupEditor and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
OnBindingContextChanged(EventArgs)
Called when the binding context changes and updates the popup form's binding context accordingly.
OnGotFocus(EventArgs)
Called when the control gains focus and triggers invalidation for visual updates.
OnLoad(Size)
Called when the control is loaded with the specified desired size.
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
desiredSize
The desired size for the control.
Overrides
OnLostFocus(EventArgs)
Called when the control loses focus and triggers invalidation for visual updates.
OnThemeChanged()
Called when the theme is changed and applies the theme to the popup form.
Declaration
protected override void OnThemeChanged()
Overrides
OnVisibleChanged(EventArgs)
Called when the control's visibility changes and updates the associated control's visibility accordingly.
ProcessAutoSizeChanged(bool)
Processes auto-size changes by adjusting the stretch behavior of the root element.
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
value
true if auto-size is enabled; otherwise, false.
Overrides
ProcessCmdKey(ref Message, Keys)
Processes command keys and handles popup closing for certain key combinations.
ResetBackColorThemeOverrides()
Resets the background color theme overrides for the popup editor elements.
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Resets the foreground color theme overrides for the popup editor elements.
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
SetAssociatedControlRuntime(RadPopupContainer)
Sets the associated control at runtime for the popup editor.
Declaration
public virtual void SetAssociatedControlRuntime(RadPopupContainer associatedControl)
Parameters
associatedControl
The RadPopupContainer to associate with this editor.
SetBackColorThemeOverrides()
Sets the background color theme overrides for the popup editor elements.
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Sets the foreground color theme overrides for the popup editor elements.
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
UnwireHostEvents()
Unwires the host events for the popup editor control.
Declaration
protected virtual void UnwireHostEvents()
WireHostEvents()
Wires the host events for the popup editor control.
Declaration
protected virtual void WireHostEvents()
Events
PopupClosed
Occurs when the popup is closed.
Declaration
public event RadPopupClosedEventHandler PopupClosed
Event Value
PopupClosing
Occurs when the popup is closing.
Declaration
public event RadPopupClosingEventHandler PopupClosing
Event Value
PopupOpened
Occurs when the popup is opened.
PopupOpening
Occurs before the popup is opened. This event can be cancelled.
Declaration
public event CancelEventHandler PopupOpening
Event Value