Class RadDataEntryElement
Class RadDataEntryElement.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDataEntryElement : RadScrollablePanelElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode
Constructors
RadDataEntryElement()
Declaration
public RadDataEntryElement()
Fields
ErrorIconProperty
The error icon property
Declaration
public static RadProperty ErrorIconProperty
Field Value
RadProperty
|
Properties
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. |
Exceptions
System.ArgumentException
Number Of Columns should be at least one |
CurrentObject
Gets the current object.
Declaration
public object CurrentObject { get; }
Property Value
System.Object
The current object. |
DataSource
Gets or sets the data source.
Declaration
public object DataSource { get; set; }
Property Value
System.Object
The data source. |
ErrorIcon
Gets or sets the icon of the Error provider.
Declaration
public Image ErrorIcon { get; set; }
Property Value
System.Drawing.Image
The error icon. |
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 filling order. |
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 manager.
Declaration
public BindingManagerBase Manager { get; }
Property Value
System.Windows.Forms.BindingManagerBase
The manager. |
Methods
ArrangeControls()
Arranges the controls.
Declaration
protected virtual void ArrangeControls()
ArrangeLabels()
Arranges the labels.
Declaration
protected virtual void ArrangeLabels()
Bind()
Binds this instance.
Declaration
public void Bind()
Clear()
Clears this instance.
Declaration
public void Clear()
CreateBinding(Control, String, String)
Creates the binding.
Declaration
protected virtual Binding CreateBinding(Control control, string propertyName, string dataMember)
Parameters
System.Windows.Forms.Control
control
The control. |
System.String
propertyName
Name of the property. |
System.String
dataMember
The data member. |
Returns
System.Windows.Forms.Binding
Binding. |
CreateBoolean(PropertyDescriptor)
Creates the boolean.
Declaration
protected virtual Control CreateBoolean(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateColor(PropertyDescriptor)
Creates the color.
Declaration
protected virtual Control CreateColor(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateDateTime(PropertyDescriptor)
Creates the date time.
Declaration
protected virtual Control CreateDateTime(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateEditors()
Declaration
protected virtual void CreateEditors()
CreateEnum(PropertyDescriptor)
Creates the enum.
Declaration
protected virtual Control CreateEnum(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateImage(PropertyDescriptor)
Creates the image.
Declaration
protected virtual Control CreateImage(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateSpinEditor(PropertyDescriptor)
Creates the text box.
Declaration
protected virtual Control CreateSpinEditor(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
CreateTextBox(PropertyDescriptor)
Creates the text box.
Declaration
protected virtual Control CreateTextBox(PropertyDescriptor property)
Parameters
System.ComponentModel.PropertyDescriptor
property
The property. |
Returns
System.Windows.Forms.Control
Control. |
FindRequiredProperties()
Finds the required properties.
Declaration
protected virtual void FindRequiredProperties()
GenerateControlsDesignTime(Int32, KeyValuePair<String, Control>, Size, Point)
Generates the controls design time.
Declaration
protected virtual void GenerateControlsDesignTime(int currentColumn, KeyValuePair<string, Control> pair, Size propertyItemControlSize, Point propertyItemControlLocation)
Parameters
System.Int32
currentColumn
The current column. |
System.Collections.Generic.KeyValuePair<System.String, System.Windows.Forms.Control>
pair
The pair. |
System.Drawing.Size
propertyItemControlSize
Size of the property item control. |
System.Drawing.Point
propertyItemControlLocation
The property item control location. |
GenerateControlsRunTime(Int32, KeyValuePair<String, Control>, Size, Point)
Generates the controls run time.
Declaration
protected virtual bool GenerateControlsRunTime(int currentColumn, KeyValuePair<string, Control> pair, Size propertyItemControlSize, Point propertyItemControlLocation)
Parameters
System.Int32
currentColumn
The current column. |
System.Collections.Generic.KeyValuePair<System.String, System.Windows.Forms.Control>
pair
The pair. |
System.Drawing.Size
propertyItemControlSize
Size of the property item control. |
System.Drawing.Point
propertyItemControlLocation
The property item control location. |
Returns
System.Boolean
|
InitializeDataEntry()
Initializes the data entry.
Declaration
protected virtual void InitializeDataEntry()
InitializeFields()
Initializes the fields.
Declaration
protected override void InitializeFields()
Overrides
OnBindingContextChanged(EventArgs)
Declaration
protected virtual void OnBindingContextChanged(EventArgs e)
Parameters
System.EventArgs
e
|
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. |
OnLoaded()
SetupInnerControls(KeyValuePair<String, Control>, Size, Point, RadPanel, RadLabel, RadLabel, Control)
Setups the inner controls.
Declaration
protected virtual void SetupInnerControls(KeyValuePair<string, Control> pair, Size propertyItemControlSize, Point propertyItemControlLocation, RadPanel propertyItemContainer, RadLabel labelControl, RadLabel validationControl, Control editorControl)
Parameters
System.Collections.Generic.KeyValuePair<System.String, System.Windows.Forms.Control>
pair
The pair. |
System.Drawing.Size
propertyItemControlSize
Size of the property item control. |
System.Drawing.Point
propertyItemControlLocation
The property item control location. |
RadPanel
propertyItemContainer
The property item container. |
RadLabel
labelControl
The label control. |
RadLabel
validationControl
The validation control. |
System.Windows.Forms.Control
editorControl
The editor control. |
SubscribeControl(Control, PropertyDescriptor, RadLabel, RadLabel)
Declaration
public void SubscribeControl(Control control, PropertyDescriptor property, RadLabel label, RadLabel validationLabel)
Parameters
System.Windows.Forms.Control
control
|
System.ComponentModel.PropertyDescriptor
property
|
RadLabel
label
|
RadLabel
validationLabel
|
Events
BindingCreated
Declaration
public event BindingCreatedEventHandler BindingCreated
Event Type
BindingCreatedEventHandler
|
BindingCreating
Declaration
public event BindingCreatingEventHandler BindingCreating
Event Type
BindingCreatingEventHandler
|
EditorInitialized
Declaration
public event EditorInitializedEventHandler EditorInitialized
Event Type
EditorInitializedEventHandler
|
EditorInitializing
Declaration
public event EditorInitializingEventHandler EditorInitializing
Event Type
EditorInitializingEventHandler
|
ItemInitialized
Declaration
public event ItemInitializedEventHandler ItemInitialized
Event Type
ItemInitializedEventHandler
|
ItemInitializing
Declaration
public event ItemInitializingEventHandler ItemInitializing
Event Type
ItemInitializingEventHandler
|
ItemValidated
Declaration
public event ItemValidatedEventHandler ItemValidated
Event Type
ItemValidatedEventHandler
|
ItemValidating
Declaration
public event ItemValidatingEventHandler ItemValidating
Event Type
ItemValidatingEventHandler
|