Class RadDataEntry
Represents a data entry. The RadDataEntry class is essentially a simple wrapper
for the Rad
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadDataEntry : RadScrollablePanel, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadDataEntry()
Properties
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.
|
Overrides
AutoSizeLabels
In RadDataEntry control there is logic that arranges the labels of the editors in one column according to the longest text. This logic can be controlled by the AutoSizeLabels property.
Declaration
public bool AutoSizeLabels { get; set; }
Property Value
System.
|
ColumnCount
Gets or sets a value indicating whether the amount of columns that RadDataEntry will use to arrange generated controls.
Declaration
public int ColumnCount { get; set; }
Property Value
System. The number of columns. |
CurrentObject
Gets the current object.
Declaration
public object CurrentObject { get; }
Property Value
System. The current object. |
DataEntryElement
Gets the instance of RadDataEntryElement wrapped by this control. RadDataEntryElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadDataEntry.
Declaration
public RadDataEntryElement DataEntryElement { get; }
Property Value
Rad The data entry element. |
DataSource
Gets or sets the data source.
Declaration
public object DataSource { get; set; }
Property Value
System. The data source. |
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System. The default System.Drawing.Size of the control. |
Overrides
Remarks
The default Size of the control.
FitToParentWidth
Gets or sets a value indicating whether the generated editors should fit their width to width of the RadDataEntry.
Declaration
public bool FitToParentWidth { get; set; }
Property Value
System.
|
FlowDirection
Gets or sets a value indicating whether generating flow of editors when the ColumnCount property has value bigger than 1.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
System. The flow direction. |
ItemDefaultSize
The ItemDefaultSize property sets the size that generated items should have if FitToParentWidth property has value false. When property the FitToParentWidth has value true the width of items are calculated according the width of the RadDataEntry
Declaration
public Size ItemDefaultSize { get; set; }
Property Value
System. The default size of the item. |
ItemSpace
Gets or sets the between the generated items.
Declaration
public int ItemSpace { get; set; }
Property Value
System. The item space. |
Manager
Gets the BindingManagerBase manager that is used for current DataSource.
Declaration
public BindingManagerBase Manager { get; }
Property Value
System. The manager. |
ShowValidationPanel
Gets or sets a value indicating whether [show validation panel].
Declaration
public bool ShowValidationPanel { get; set; }
Property Value
System.
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.
|
Overrides
ValidationPanel
Gets the validation panel.
Declaration
public ValidationPanel ValidationPanel { get; }
Property Value
Validation The validation panel. |
Methods
CreateControlsInstance()
Creates the controls instance.
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System. Control.ControlCollection. |
Overrides
CreatePanelElement()
Creates the panel element.
Declaration
protected override RadScrollablePanelElement CreatePanelElement()
Returns
Rad RadScrollablePanelElement. |
Overrides
CreateScrollablePanelContainer()
Declaration
protected override RadScrollablePanelContainer CreateScrollablePanelContainer()
Returns
Overrides
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
EndInit()
InitializeInternalControls()
This method initializes the scrollbars and the container control.
Declaration
protected override void InitializeInternalControls()
Overrides
InsertInternalControls()
This method inserts the scrollbars and the container in the Controls collection of this control.
Declaration
protected override void InsertInternalControls()
Overrides
OnBindingContextChanged(EventArgs)
Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
System.
|
Overrides
OnBindingCreated(Object, BindingCreatedEventArgs)
Handles the Binding
Declaration
protected virtual void OnBindingCreated(object sender, BindingCreatedEventArgs e)
Parameters
System. The sender. |
Binding The Binding |
OnBindingCreating(Object, BindingCreatingEventArgs)
Handles the Binding
Declaration
protected virtual void OnBindingCreating(object sender, BindingCreatingEventArgs e)
Parameters
System. The sender. |
Binding The Binding |
OnEditorInitialized(Object, EditorInitializedEventArgs)
Handles the Editor
Declaration
protected virtual void OnEditorInitialized(object sender, EditorInitializedEventArgs e)
Parameters
System. The sender. |
Editor The Editor |
OnEditorInitializing(Object, EditorInitializingEventArgs)
Handles the Editor
Declaration
protected virtual void OnEditorInitializing(object sender, EditorInitializingEventArgs e)
Parameters
System. The sender. |
Editor The Editor |
OnItemInitialized(Object, ItemInitializedEventArgs)
Handles the Item
Declaration
protected virtual void OnItemInitialized(object sender, ItemInitializedEventArgs e)
Parameters
System. The sender. |
Item The Item |
OnItemInitializing(Object, ItemInitializingEventArgs)
Handles the Item
Declaration
protected virtual void OnItemInitializing(object sender, ItemInitializingEventArgs e)
Parameters
System. The sender. |
Item The Item |
OnItemValidated(Object, ItemValidatedEventArgs)
Handles the Validated
Declaration
protected virtual void OnItemValidated(object sender, ItemValidatedEventArgs e)
Parameters
System. The sender. |
Item The Item |
OnItemValidating(Object, ItemValidatingEventArgs)
Handles the Validating
Declaration
protected virtual void OnItemValidating(object sender, ItemValidatingEventArgs e)
Parameters
System. The sender. |
Item The Item |
OnThemeChanged()
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
ScaleControl(SizeF, BoundsSpecified)
Declaration
protected override void ScaleControl(SizeF factor, BoundsSpecified specified)
Parameters
System.
|
System.
|
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
UpdateValidationPanelVisibility()
Updates the validation panel visibility.
Declaration
public virtual void UpdateValidationPanelVisibility()
Events
BindingCreated
Occurs when binding object is created.
Declaration
public event BindingCreatedEventHandler BindingCreated
Event Type
BindingCreating
Occurs when a binding object for an editor is about to be created. This event is cancellable.
Declaration
public event BindingCreatingEventHandler BindingCreating
Event Type
EditorInitialized
Occurs when the editor is Initialized.
Declaration
public event EditorInitializedEventHandler EditorInitialized
Event Type
EditorInitializing
Occurs when editor is being initialized. This event is cancellable.
Declaration
public event EditorInitializingEventHandler EditorInitializing
Event Type
ItemInitialized
Occurs the item is already Initialized.
Declaration
public event ItemInitializedEventHandler ItemInitialized
Event Type
ItemInitializing
This event is firing when the panel that contains the label, editor and validation label is about to be Initialized. This event is cancellable.
Declaration
public event ItemInitializingEventHandler ItemInitializing
Event Type
ItemValidated
Occurs when the value of editor is changed.
Declaration
public event ItemValidatedEventHandler ItemValidated
Event Type
ItemValidating
Occurs when the value of editor is about to change.
Declaration
public event ItemValidatingEventHandler ItemValidating