New to Telerik UI for .NET MAUIStart a free 30-day trial

Base abstract class for all editors in a RadDataForm.

Definition

Constructors

Initializes a new instance of the DataFormEditor class.

C#
public DataFormEditor()

Fields

Identifies the ActualEditorStyle property.

C#
public static readonly BindableProperty ActualEditorStyleProperty

Identifies the ActualErrorDisplayOptions property.

C#
public static readonly BindableProperty ActualErrorDisplayOptionsProperty

Identifies the ActualErrorImageSource property.

C#
public static readonly BindableProperty ActualErrorImageSourceProperty

Identifies the ActualErrorImageStyle property.

C#
public static readonly BindableProperty ActualErrorImageStyleProperty

Identifies the ActualErrorLabelStyle property.

C#
public static readonly BindableProperty ActualErrorLabelStyleProperty

Identifies the ActualErrorLength property.

C#
public static readonly BindableProperty ActualErrorLengthProperty

Identifies the ActualErrorPosition property.

C#
public static readonly BindableProperty ActualErrorPositionProperty

Identifies the ActualHeaderDisplayOptions property.

C#
public static readonly BindableProperty ActualHeaderDisplayOptionsProperty

Identifies the ActualHeaderImageSource property.

C#
public static readonly BindableProperty ActualHeaderImageSourceProperty

Identifies the ActualHeaderImageStyle property.

C#
public static readonly BindableProperty ActualHeaderImageStyleProperty

Identifies the ActualHeaderLabelStyle property.

C#
public static readonly BindableProperty ActualHeaderLabelStyleProperty

Identifies the ActualHeaderLength property.

C#
public static readonly BindableProperty ActualHeaderLengthProperty

Identifies the ActualHeaderPosition property.

C#
public static readonly BindableProperty ActualHeaderPositionProperty

ColumnSpacingProperty

BindableProperty

Identifies the ColumnSpacing property.

C#
public static readonly BindableProperty ColumnSpacingProperty

CommitModeProperty

BindableProperty

Identifies the CommitMode property.

C#
public static readonly BindableProperty CommitModeProperty

Identifies the ConverterParameter property.

C#
public static readonly BindableProperty ConverterParameterProperty

ConverterProperty

BindableProperty

Identifies the Converter property.

C#
public static readonly BindableProperty ConverterProperty

EditorStyleProperty

BindableProperty

Identifies the EditorStyle property.

C#
public static readonly BindableProperty EditorStyleProperty

EditorValueProperty

BindableProperty

Identifies the EditorValue property.

C#
public static readonly BindableProperty EditorValueProperty

Identifies the ErrorDisplayOptions property.

C#
public static readonly BindableProperty ErrorDisplayOptionsProperty

ErrorImageSourceProperty

BindableProperty

Identifies the ErrorImageSource property.

C#
public static readonly BindableProperty ErrorImageSourceProperty

ErrorImageStyleProperty

BindableProperty

Identifies the ErrorImageStyle property.

C#
public static readonly BindableProperty ErrorImageStyleProperty

ErrorLabelStyleProperty

BindableProperty

Identifies the ErrorLabelStyle property.

C#
public static readonly BindableProperty ErrorLabelStyleProperty

ErrorLengthProperty

BindableProperty

Identifies the ErrorLength property.

C#
public static readonly BindableProperty ErrorLengthProperty

ErrorPositionProperty

BindableProperty

Identifies the ErrorPosition property.

C#
public static readonly BindableProperty ErrorPositionProperty

Identifies the HasPendingChanges property.

C#
public static readonly BindableProperty HasPendingChangesProperty

Identifies the HasValidationErrors property.

C#
public static readonly BindableProperty HasValidationErrorsProperty

Identifies the HeaderDisplayOptions property.

C#
public static readonly BindableProperty HeaderDisplayOptionsProperty

Identifies the HeaderImageSource property.

C#
public static readonly BindableProperty HeaderImageSourceProperty

HeaderImageStyleProperty

BindableProperty

Identifies the HeaderImageStyle property.

C#
public static readonly BindableProperty HeaderImageStyleProperty

HeaderLabelStyleProperty

BindableProperty

Identifies the HeaderLabelStyle property.

C#
public static readonly BindableProperty HeaderLabelStyleProperty

HeaderLengthProperty

BindableProperty

Identifies the HeaderLength property.

C#
public static readonly BindableProperty HeaderLengthProperty

HeaderPositionProperty

BindableProperty

Identifies the HeaderPosition property.

C#
public static readonly BindableProperty HeaderPositionProperty

HeaderTextProperty

BindableProperty

Identifies the HeaderText property.

C#
public static readonly BindableProperty HeaderTextProperty

Identifies the IsErrorImageVisible property.

C#
public static readonly BindableProperty IsErrorImageVisibleProperty

Identifies the IsErrorLabelVisible property.

C#
public static readonly BindableProperty IsErrorLabelVisibleProperty

Identifies the IsHeaderImageVisible property.

C#
public static readonly BindableProperty IsHeaderImageVisibleProperty

Identifies the IsHeaderLabelVisible property.

C#
public static readonly BindableProperty IsHeaderLabelVisibleProperty

IsReadOnlyProperty

BindableProperty

Identifies the IsReadOnly property.

C#
public static readonly BindableProperty IsReadOnlyProperty

PropertyNameProperty

BindableProperty

Identifies the PropertyName property.

C#
public static readonly BindableProperty PropertyNameProperty

PropertyValueProperty

BindableProperty

Identifies the PropertyValue property.

C#
public static readonly BindableProperty PropertyValueProperty

RowSpacingProperty

BindableProperty

Identifies the RowSpacing property.

C#
public static readonly BindableProperty RowSpacingProperty

ValidationModeProperty

BindableProperty

Identifies the ValidationMode property.

C#
public static readonly BindableProperty ValidationModeProperty

Properties

Gets the result from merging the Style specified in the EditorStyle property and the default base Style for that property.

C#
public Style ActualEditorStyle { get; }

Gets the actual value specified with the ErrorDisplayOptions property or inherided from the ErrorDisplayOptions property of the RadDataForm.

C#
public DataFormErrorDisplayOptions ActualErrorDisplayOptions { get; }

Gets the actual value specified with the ErrorImageSource property or inherided from the ErrorImageSource property of the RadDataForm.

C#
public ImageSource ActualErrorImageSource { get; }

Gets the result from merging the Style specified in the ErrorImageStyle property and the default base Style for that property.

C#
public Style ActualErrorImageStyle { get; }

Gets the result from merging the Style specified in the ErrorLabelStyle property and the default base Style for that property.

C#
public Style ActualErrorLabelStyle { get; }

Gets the actual value specified with the ErrorLength property or inherided from the ErrorLength property of the RadDataForm.

C#
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualErrorLength { get; }

Gets the actual value specified with the ErrorPosition property or inherided from the ErrorPosition property of the RadDataForm.

C#
public DataFormErrorPosition ActualErrorPosition { get; }

Gets the actual value specified with the HeaderDisplayOptions property or inherided from the HeaderDisplayOptions property of the RadDataForm.

C#
public DataFormHeaderDisplayOptions ActualHeaderDisplayOptions { get; }

Gets the actual value specified with the HeaderImageSource property or inherided from the HeaderImageSource property of the RadDataForm.

C#
public ImageSource ActualHeaderImageSource { get; }

Gets the result from merging the Style specified in the HeaderImageStyle property and the default base Style for that property.

C#
public Style ActualHeaderImageStyle { get; }

Gets the result from merging the Style specified in the HeaderLabelStyle property and the default base Style for that property.

C#
public Style ActualHeaderLabelStyle { get; }

Gets the actual value specified with the HeaderLength property or inherided from the HeaderLength property of the RadDataForm.

C#
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualHeaderLength { get; }

Gets the actual value specified with the HeaderPosition property or inherided from the HeaderPosition property of the RadDataForm.

C#
public DataFormHeaderPosition ActualHeaderPosition { get; }

Gets or sets the horizontal spacing between the columns in the DataFormEditor.

C#
public double ColumnSpacing { get; set; }

Gets or sets the current commit mode of the DataFormEditor. For more information see the DataFormCommitMode type.

C#
public DataFormCommitMode CommitMode { get; set; }

Converter

IValueConverter

Gets or sets a IValueConverter to use when performing conversions between the value from the business object and the current editor.

C#
public IValueConverter Converter { get; set; }

Gets or sets a custom parameter to pass to the IValueConverter when performing conversions between the value from the business object and the current editor.

C#
public object ConverterParameter { get; set; }

Gets or sets the Style applied to the editor control. The target type of this Style depends on the actual editor control being used. For more information see the descendants of the DataFormEditor class.

C#
public Style EditorStyle { get; set; }

Gets or sets the current edited value, before applying it to the business object.

C#
public object EditorValue { get; set; }

Gets or sets display options of the error indicator in the DataFormEditor. For more information see the DataFormErrorDisplayOptions type.

C#
public DataFormErrorDisplayOptions? ErrorDisplayOptions { get; set; }

ErrorImageSource

ImageSource

Gets or sets the ImageSource of the error icon.

C#
public ImageSource ErrorImageSource { get; set; }

Gets or sets the Style applied to the error icon. The target type of this Style is .

C#
public Style ErrorImageStyle { get; set; }

Gets or sets the Style applied to the error label. The target type of this Style is .

C#
public Style ErrorLabelStyle { get; set; }

ErrorLength

GridLength

Gets or sets the length of the error indicator in the editor. This property has an effect only when the ErrorPosition property is set to Beside. You can specify absolute values in pixels or weighted values followed by the asterisk symbol "". For instance, the value of "0.1" specifies that the error length should be 10% from the length of the corresponding editor. The special value "Auto" specifies that the error length should be computed automatically for each error indicator, based on the actual error size requirements.

C#
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ErrorLength { get; set; }

Gets or sets a value specifying the relative position of the error indicator in the DataFormEditor. For more information see the DataFormErrorPosition type.

C#
public DataFormErrorPosition? ErrorPosition { get; set; }

Gets a value indicating whether there are pending changes.

C#
public bool HasPendingChanges { get; }

Gets a value indicating whether there are validation errors.

C#
public bool HasValidationErrors { get; }

Gets or sets the display options of the header in the DataFormEditor. For more information see the DataFormHeaderDisplayOptions type.

C#
public DataFormHeaderDisplayOptions? HeaderDisplayOptions { get; set; }

Gets or sets the ImageSource of the header icon.

C#
public ImageSource HeaderImageSource { get; set; }

Gets or sets the Style applied to the header icon. The target type of this Style is .

C#
public Style HeaderImageStyle { get; set; }

Gets or sets the Style applied to the header label in the DataFormEditor. The target type of this Style is .

C#
public Style HeaderLabelStyle { get; set; }

HeaderLength

GridLength

Gets or sets the length of the header view in the editor. This property has an effect only when the HeaderPosition property is set to Beside. You can specify absolute values in pixels or weighted values followed by the asterisk symbol "". For instance, the value of "0.5" specifies that the header length should be 50% from the length of the corresponding editor. The special value "Auto" specifies that the header length should be computed automatically for the header view, based on the actual header size requirements.

C#
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength HeaderLength { get; set; }

Gets or sets a value specifying the relative position of the header label in the DataFormEditor. For more information see the DataFormHeaderPosition type.

C#
public DataFormHeaderPosition? HeaderPosition { get; set; }

Gets or sets the text of the header label in the DataFormEditor.

C#
public string HeaderText { get; set; }

Gets a value indicating whether the error icon is currently visible in the DataFormEditor.

C#
public bool IsErrorImageVisible { get; }

Gets a value indicating whether the error label is currently visible in the DataFormEditor.

C#
public bool IsErrorLabelVisible { get; }

Gets a value indicating whether the header icon is currently visible in the DataFormEditor.

C#
public bool IsHeaderImageVisible { get; }

Gets a value indicating whether the header label is currently visible in the DataFormEditor.

C#
public bool IsHeaderLabelVisible { get; }

Gets or sets a value indicating whether the current editor is in a read-only mode.

C#
public bool? IsReadOnly { get; set; }

Gets or sets the name of the property from the business object this editor is bound to.

C#
public string PropertyName { get; set; }

Gets or sets the value of the property from the business object this editor is bound to.

C#
public object PropertyValue { get; set; }

Gets or sets the vertical spacing between the rows in the DataFormEditor.

C#
public double RowSpacing { get; set; }

Gets a collection of validation errors that are produced after the last execution of the validation logic associated with the current DataFormEditor. This collection aggregates all validation errors produced by the validation rules from the property metadata of the underlying business object data model and all custom validation rules specified to the editor. For more information see the DataFormEditorValidationError type.

C#
public IReadOnlyList<DataFormEditorValidationError> ValidationErrors { get; }

Gets or sets the current validation mode of the DataFormEditor. For more information see the DataFormValidationMode type.

C#
public DataFormValidationMode ValidationMode { get; set; }

Gets a collection of validation rules associated with the current DataFormEditor. The validation rules specified here extend the base set of validation rules that come from the metadata of the underlying business object data model. When the validation logic is triggered, these validation rules are executed last, after executing the validation rules for the corresponding property. This makes it possible to execute more advanced validation logic beside what is specified with metadata and provide more detailed validation errors. For more information see the inheritors of the DataFormEditorValidationRule type.

C#
public IList<DataFormEditorValidationRule> ValidationRules { get; }

Methods

Cancels all pending changes in the DataFormEditor and reverts to the original property value from the underlying business object. This method is mostly useful when the CommitMode property is set to Explicit.

C#
public void CancelChanges()

Commits all pending changes in the DataFormEditor to the corresponding property of the underlying business object. This method is mostly useful when the CommitMode property is set to Explicit.

C#
public bool CommitChanges()
Returns:

bool

True if the validation passes and the changes are committed successfully, false otherwise.

Executes the validation logic associated with the current DataFormEditor. This method is mostly useful when the ValidationMode property is set to Explicit.

C#
public bool ValidateChanges()
Returns:

bool

True if the validation passes, false otherwise.

Events

Raised when the validation of the editor has completed.

C#
public event EventHandler<DataFormEditorValidationCompletedEventArgs> ValidationCompleted

Raised when the value of the editor has changed.

C#
public event EventHandler<DataFormEditorValueChangedEventArgs> ValueChanged
In this article
DefinitionConstructorsDataFormEditor()FieldsActualEditorStylePropertyActualErrorDisplayOptionsPropertyActualErrorImageSourcePropertyActualErrorImageStylePropertyActualErrorLabelStylePropertyActualErrorLengthPropertyActualErrorPositionPropertyActualHeaderDisplayOptionsPropertyActualHeaderImageSourcePropertyActualHeaderImageStylePropertyActualHeaderLabelStylePropertyActualHeaderLengthPropertyActualHeaderPositionPropertyColumnSpacingPropertyCommitModePropertyConverterParameterPropertyConverterPropertyEditorStylePropertyEditorValuePropertyErrorDisplayOptionsPropertyErrorImageSourcePropertyErrorImageStylePropertyErrorLabelStylePropertyErrorLengthPropertyErrorPositionPropertyHasPendingChangesPropertyHasValidationErrorsPropertyHeaderDisplayOptionsPropertyHeaderImageSourcePropertyHeaderImageStylePropertyHeaderLabelStylePropertyHeaderLengthPropertyHeaderPositionPropertyHeaderTextPropertyIsErrorImageVisiblePropertyIsErrorLabelVisiblePropertyIsHeaderImageVisiblePropertyIsHeaderLabelVisiblePropertyIsReadOnlyPropertyPropertyNamePropertyPropertyValuePropertyRowSpacingPropertyValidationModePropertyPropertiesActualEditorStyleActualErrorDisplayOptionsActualErrorImageSourceActualErrorImageStyleActualErrorLabelStyleActualErrorLengthActualErrorPositionActualHeaderDisplayOptionsActualHeaderImageSourceActualHeaderImageStyleActualHeaderLabelStyleActualHeaderLengthActualHeaderPositionColumnSpacingCommitModeConverterConverterParameterEditorStyleEditorValueErrorDisplayOptionsErrorImageSourceErrorImageStyleErrorLabelStyleErrorLengthErrorPositionHasPendingChangesHasValidationErrorsHeaderDisplayOptionsHeaderImageSourceHeaderImageStyleHeaderLabelStyleHeaderLengthHeaderPositionHeaderTextIsErrorImageVisibleIsErrorLabelVisibleIsHeaderImageVisibleIsHeaderLabelVisibleIsReadOnlyPropertyNamePropertyValueRowSpacingValidationErrorsValidationModeValidationRulesMethodsCancelChanges()CommitChanges()ValidateChanges()EventsValidationCompletedValueChanged
Not finding the help you need?
Contact Support