Class RadDataEntry
Represents a data entry. The RadDataEntry class is essentially a simple wrapper for the RadScrollablePanelElement. All UI and logic functionality is implemented in the RadScrollablePanelElement class. The RadDataEntry acts to transfer the events to and from its corresponding RadScrollablePanelElement instance. The RadScrollablePanelElement may be nested in other telerik controls.
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.Boolean
|
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.Boolean
|
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.Int32
The number of columns. |
CurrentObject
Gets the current object.
Declaration
public object CurrentObject { get; }
Property Value
System.Object
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
RadDataEntryElement
The data entry element. |
DataSource
Gets or sets the data source.
Declaration
public object DataSource { get; set; }
Property Value
System.Object
The data source. |
DefaultSize
Gets the default size of the control.
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
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.Boolean
|
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.Windows.Forms.FlowDirection
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.Drawing.Size
The default size of the item. |
ItemSpace
Gets or sets the between the generated items.
Declaration
public int ItemSpace { get; set; }
Property Value
System.Int32
The item space. |
Manager
Gets the BindingManagerBase manager that is used for current DataSource.
Declaration
public BindingManagerBase Manager { get; }
Property Value
System.Windows.Forms.BindingManagerBase
The manager. |
ShowValidationPanel
Gets or sets a value indicating whether [show validation panel].
Declaration
public bool ShowValidationPanel { get; set; }
Property Value
System.Boolean
|
Text
This property is not relevant for this class.
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
ValidationPanel
Gets the validation panel.
Declaration
public ValidationPanel ValidationPanel { get; }
Property Value
ValidationPanel
The validation panel. |
Methods
CreateControlsInstance()
Creates the controls instance.
Declaration
protected override Control.ControlCollection CreateControlsInstance()
Returns
System.Windows.Forms.Control.ControlCollection
Control.ControlCollection. |
Overrides
CreatePanelElement()
Creates the panel element.
Declaration
protected override RadScrollablePanelElement CreatePanelElement()
Returns
RadScrollablePanelElement
RadScrollablePanelElement. |
Overrides
CreateScrollablePanelContainer()
Declaration
protected override RadScrollablePanelContainer CreateScrollablePanelContainer()
Returns
RadScrollablePanelContainer
|
Overrides
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
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.EventArgs
e
|
Overrides
OnBindingCreated(Object, BindingCreatedEventArgs)
Handles the BindingCreated event.
Declaration
protected virtual void OnBindingCreated(object sender, BindingCreatedEventArgs e)
Parameters
System.Object
sender
The sender. |
BindingCreatedEventArgs
e
The BindingCreatedEventArgs instance containing the event data. |
OnBindingCreating(Object, BindingCreatingEventArgs)
Handles the BindingCreating event.
Declaration
protected virtual void OnBindingCreating(object sender, BindingCreatingEventArgs e)
Parameters
System.Object
sender
The sender. |
BindingCreatingEventArgs
e
The BindingCreatingEventArgs instance containing the event data. |
OnEditorInitialized(Object, EditorInitializedEventArgs)
Handles the EditorInitialized event.
Declaration
protected virtual void OnEditorInitialized(object sender, EditorInitializedEventArgs e)
Parameters
System.Object
sender
The sender. |
EditorInitializedEventArgs
e
The EditorInitializedEventArgs instance containing the event data. |
OnEditorInitializing(Object, EditorInitializingEventArgs)
Handles the EditorInitializing event.
Declaration
protected virtual void OnEditorInitializing(object sender, EditorInitializingEventArgs e)
Parameters
System.Object
sender
The sender. |
EditorInitializingEventArgs
e
The EditorInitializingEventArgs instance containing the event data. |
OnItemInitialized(Object, ItemInitializedEventArgs)
Handles the ItemInitialized event.
Declaration
protected virtual void OnItemInitialized(object sender, ItemInitializedEventArgs e)
Parameters
System.Object
sender
The sender. |
ItemInitializedEventArgs
e
The ItemInitializedEventArgs instance containing the event data. |
OnItemInitializing(Object, ItemInitializingEventArgs)
Handles the ItemInitializing event.
Declaration
protected virtual void OnItemInitializing(object sender, ItemInitializingEventArgs e)
Parameters
System.Object
sender
The sender. |
ItemInitializingEventArgs
e
The ItemInitializingEventArgs instance containing the event data. |
OnItemValidated(Object, ItemValidatedEventArgs)
Handles the ValidatedItem event.
Declaration
protected virtual void OnItemValidated(object sender, ItemValidatedEventArgs e)
Parameters
System.Object
sender
The sender. |
ItemValidatedEventArgs
e
The ItemValidatedEventArgs instance containing the event data. |
OnItemValidating(Object, ItemValidatingEventArgs)
Handles the ValidatingItem event.
Declaration
protected virtual void OnItemValidating(object sender, ItemValidatingEventArgs e)
Parameters
System.Object
sender
The sender. |
ItemValidatingEventArgs
e
The ItemValidatingEventArgs instance containing the event data. |
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.Drawing.SizeF
factor
|
System.Windows.Forms.BoundsSpecified
specified
|
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
BindingCreatedEventHandler
|
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
BindingCreatingEventHandler
|
EditorInitialized
Occurs when the editor is Initialized.
Declaration
public event EditorInitializedEventHandler EditorInitialized
Event Type
EditorInitializedEventHandler
|
EditorInitializing
Occurs when editor is being initialized. This event is cancellable.
Declaration
public event EditorInitializingEventHandler EditorInitializing
Event Type
EditorInitializingEventHandler
|
ItemInitialized
Occurs the item is already Initialized.
Declaration
public event ItemInitializedEventHandler ItemInitialized
Event Type
ItemInitializedEventHandler
|
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
ItemInitializingEventHandler
|
ItemValidated
Occurs when the value of editor is changed.
Declaration
public event ItemValidatedEventHandler ItemValidated
Event Type
ItemValidatedEventHandler
|
ItemValidating
Occurs when the value of editor is about to change.
Declaration
public event ItemValidatingEventHandler ItemValidating
Event Type
ItemValidatingEventHandler
|