Class RadDataLayoutElement
The main element of Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadDataLayoutElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadDataLayoutElement()
Declaration
public RadDataLayoutElement()
Fields
ErrorIconProperty
The error icon property
Declaration
public static RadProperty ErrorIconProperty
Field Value
Properties
AutoSizeLabels
If [true], the labels will have a fixed size, best-fitted to the largest text in the column. If [false], the labels will have their default proportional size.
Declaration
public bool AutoSizeLabels { get; set; }
Property Value
System.
|
ColumnCount
Gets or sets the number of columns which will be used to arrange generated controls.
Declaration
public int ColumnCount { get; set; }
Property Value
System.
|
Exceptions
System. Number Of Columns should be at least one |
CurrentObject
Gets the current object.
Declaration
public object CurrentObject { get; }
Property Value
System.
|
DataSource
Gets or sets the data source.
Declaration
public object DataSource { get; set; }
Property Value
System.
|
ErrorIcon
Gets or sets the icon of the Error provider.
Declaration
public Image ErrorIcon { get; set; }
Property Value
System. The error icon. |
FlowDirection
Gets or sets a value indicating the flow direction of generated editors when the ColumnCount property has value bigger than 1.
Declaration
public FlowDirection FlowDirection { get; set; }
Property Value
System.
|
ItemDefaultHeight
The ItemDefaultHeight property sets the height that generated items should have.
Declaration
public int ItemDefaultHeight { get; set; }
Property Value
System.
|
Manager
Gets the manager.
Declaration
public BindingManagerBase Manager { get; }
Property Value
System.
|
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. The control. |
System. Name of the property. |
System. The data member. |
Returns
System. Binding. |
CreateControl(PropertyDescriptor, Type)
Creates a control with the specified type for a given property.
Declaration
protected virtual Control CreateControl(PropertyDescriptor property, Type editorType)
Parameters
System. The property. |
System. The suggested editor type. |
Returns
System. A Control instance. |
CreateEditors()
Declaration
protected virtual void CreateEditors()
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. The current column. |
System. The pair. |
System. Size of the property item control. |
System. The property item control location. |
GenerateControlsRunTime(Int32, KeyValuePair<String, Control>, Size, Point)
Generates the controls run time.
Declaration
protected virtual void GenerateControlsRunTime(int currentColumn, KeyValuePair<string, Control> pair, Size propertyItemControlSize, Point propertyItemControlLocation)
Parameters
System. The current column. |
System. The pair. |
System. Size of the property item control. |
System. The property item control location. |
GetSuggestedEditorType(Type)
Gets the suggested editor type for the specified property type.
Declaration
protected virtual Type GetSuggestedEditorType(Type propertyType)
Parameters
System. The property type. |
Returns
System. The type of the suggested editor. |
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.
|
OnBindingCreated(Object, BindingCreatedEventArgs)
Fires the Binding
Declaration
protected virtual void OnBindingCreated(object sender, BindingCreatedEventArgs e)
Parameters
System. The sender. |
Binding The Binding |
OnBindingCreating(Object, BindingCreatingEventArgs)
Fires the Binding
Declaration
protected virtual void OnBindingCreating(object sender, BindingCreatingEventArgs e)
Parameters
System. The sender. |
Binding The Binding |
OnEditorInitialized(Object, EditorInitializedEventArgs)
Fires the Editor
Declaration
protected virtual void OnEditorInitialized(object sender, EditorInitializedEventArgs e)
Parameters
System. The sender. |
Editor The Editor |
OnEditorInitializing(Object, EditorInitializingEventArgs)
Fires the Editor
Declaration
protected virtual void OnEditorInitializing(object sender, EditorInitializingEventArgs e)
Parameters
System. The sender. |
Editor The Editor |
OnItemInitialized(Object, DataLayoutItemInitializedEventArgs)
Fires the Item
Declaration
protected virtual void OnItemInitialized(object sender, DataLayoutItemInitializedEventArgs e)
Parameters
System. The sender. |
Data The Data |
OnItemInitializing(Object, DataLayoutItemInitializingEventArgs)
Fires the Item
Declaration
protected virtual void OnItemInitializing(object sender, DataLayoutItemInitializingEventArgs e)
Parameters
System. The sender. |
Data The Data |
OnItemValidated(Object, DataLayoutItemValidatedEventArgs)
Fires the Validated
Declaration
protected virtual void OnItemValidated(object sender, DataLayoutItemValidatedEventArgs e)
Parameters
System. The sender. |
Data The Data |
OnItemValidating(Object, DataLayoutItemValidatingEventArgs)
Fires the Validating
Declaration
protected virtual void OnItemValidating(object sender, DataLayoutItemValidatingEventArgs e)
Parameters
System. The sender. |
Data The Data |
SubscribeControl(DataLayoutControlItem, PropertyDescriptor)
Declaration
public void SubscribeControl(DataLayoutControlItem item, PropertyDescriptor property)
Parameters
Data
|
System.
|
Events
BindingCreated
Declaration
public event BindingCreatedEventHandler BindingCreated
Event Type
BindingCreating
Declaration
public event BindingCreatingEventHandler BindingCreating
Event Type
EditorInitialized
Declaration
public event EditorInitializedEventHandler EditorInitialized
Event Type
EditorInitializing
Declaration
public event EditorInitializingEventHandler EditorInitializing
Event Type
ItemInitialized
Declaration
public event DataLayoutItemInitializedEventHandler ItemInitialized
Event Type
ItemInitializing
Declaration
public event DataLayoutItemInitializingEventHandler ItemInitializing
Event Type
ItemValidated
Declaration
public event DataLayoutItemValidatedEventHandler ItemValidated
Event Type
ItemValidating
Declaration
public event DataLayoutItemValidatingEventHandler ItemValidating