Class RadDataLayout
An extension of the Rad
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadDataLayout : RadNCEnabledControl, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadDataLayout()
Properties
AutoSize
Declaration
public override bool AutoSize { get; set; }
Property Value
System.
|
Overrides
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.
|
ClientMargin
Gets the margin around the client area of the control. In the default case, this should be the border thickness.
Declaration
public Padding ClientMargin { get; }
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.
|
DataLayoutElement
Gets the instance of Rad
Declaration
public RadDataLayoutElement DataLayoutElement { get; }
Property Value
DataSource
Gets or sets the DataSource. Setting the DataSource will auto-generate editors for the fields in it.
Declaration
public object DataSource { get; set; }
Property Value
System.
|
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.
|
EnableNCModification
Declaration
protected override bool EnableNCModification { get; }
Property Value
System.
|
Overrides
EnableNCPainting
Declaration
protected override bool EnableNCPainting { get; }
Property Value
System.
|
Overrides
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.
|
LayoutControl
Gets the inner Rad
Declaration
public RadLayoutControl LayoutControl { get; }
Property Value
Manager
Gets the BindingManagerBase manager that is used to manage the current DataSource.
Declaration
public BindingManagerBase Manager { get; }
Property Value
System.
|
ShowValidationPanel
Gets or sets a value indicating whether the validation panel should appear.
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
Methods
CreateChildItems(RadElement)
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
Rad
|
Overrides
Dispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
System.
|
Overrides
EndInit()
GetNCMetrics()
Declaration
protected override Padding GetNCMetrics()
Returns
System.
|
Overrides
InitializeInternalControls()
Initializes the Rad
Declaration
protected virtual void InitializeInternalControls()
OnBindingContextChanged(EventArgs)
Declaration
protected override void OnBindingContextChanged(EventArgs e)
Parameters
System.
|
Overrides
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 |
OnNCPaint(Graphics)
Declaration
protected override void OnNCPaint(Graphics g)
Parameters
System.
|
Overrides
OnSizeChanged(EventArgs)
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
System.
|
OnThemeChanged()
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
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 cancelable.
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 cancelable
Declaration
public event EditorInitializingEventHandler EditorInitializing
Event Type
ItemInitialized
Occurs the item is already Initialized.
Declaration
public event DataLayoutItemInitializedEventHandler ItemInitialized
Event Type
ItemInitializing
This event is firing when the item associated with a given field is about to be Initialized. This event is cancelable..
Declaration
public event DataLayoutItemInitializingEventHandler ItemInitializing
Event Type
ItemValidated
Occurs when the value of editor is changed.
Declaration
public event DataLayoutItemValidatedEventHandler ItemValidated
Event Type
ItemValidating
Occurs when the value of editor is about to change.
Declaration
public event DataLayoutItemValidatingEventHandler ItemValidating