Class
DataFormEditor

Base abstract class for all editors in a RadDataForm.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public abstract class DataFormEditor : DataFormItem, IRadContentView, IContentView, IPadding, ICrossPlatformLayout, IView, IElement, ITransform

Inheritance: objectRadContentViewDataFormContentViewDataFormItemDataFormEditor

Derived Classes: DataFormCustomEditorDataFormDatePickerEditorDataFormInputEditorDataFormRadCheckBoxEditorDataFormRadComboBoxEditorDataFormRadNumericEditorDataFormRadPickerEditorDataFormRadSegmentedEditorDataFormSwitchEditorDataFormTimePickerEditor

Implements: IContentViewICrossPlatformLayoutIElementIPaddingIRadContentViewITransformIView

Inherited Members DataFormContentView.BackgroundColorPropertyDataFormContentView.BorderColorPropertyDataFormContentView.BorderThicknessPropertyDataFormContentView.CornerRadiusPropertyDataFormContentView.ContentPaddingPropertyDataFormContentView.BackgroundColorDataFormContentView.BorderColorDataFormContentView.BorderThicknessDataFormContentView.CornerRadiusDataFormContentView.ContentPaddingRadContentView.ActualStyleClassPropertyRadContentView.OnChildAdded(Element)RadContentView.OnChildRemoved(Element, int)RadContentView.OnBindingContextChanged()RadContentView.OnHandlerChanged()

Constructors

DataFormEditor()

Initializes a new instance of the DataFormEditor class.

Declaration

cs-api-definition
public DataFormEditor()

Fields

ActualEditorStyleProperty

Identifies the ActualEditorStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualEditorStyleProperty

Field Value

BindableProperty

ActualErrorDisplayOptionsProperty

Identifies the ActualErrorDisplayOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorDisplayOptionsProperty

Field Value

BindableProperty

ActualErrorImageSourceProperty

Identifies the ActualErrorImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorImageSourceProperty

Field Value

BindableProperty

ActualErrorImageStyleProperty

Identifies the ActualErrorImageStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorImageStyleProperty

Field Value

BindableProperty

ActualErrorLabelStyleProperty

Identifies the ActualErrorLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorLabelStyleProperty

Field Value

BindableProperty

ActualErrorLengthProperty

Identifies the ActualErrorLength property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorLengthProperty

Field Value

BindableProperty

ActualErrorPositionProperty

Identifies the ActualErrorPosition property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualErrorPositionProperty

Field Value

BindableProperty

ActualHeaderDisplayOptionsProperty

Identifies the ActualHeaderDisplayOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderDisplayOptionsProperty

Field Value

BindableProperty

ActualHeaderImageSourceProperty

Identifies the ActualHeaderImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderImageSourceProperty

Field Value

BindableProperty

ActualHeaderImageStyleProperty

Identifies the ActualHeaderImageStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderImageStyleProperty

Field Value

BindableProperty

ActualHeaderLabelStyleProperty

Identifies the ActualHeaderLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderLabelStyleProperty

Field Value

BindableProperty

ActualHeaderLengthProperty

Identifies the ActualHeaderLength property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderLengthProperty

Field Value

BindableProperty

ActualHeaderPositionProperty

Identifies the ActualHeaderPosition property.

Declaration

cs-api-definition
public static readonly BindableProperty ActualHeaderPositionProperty

Field Value

BindableProperty

ColumnSpacingProperty

Identifies the ColumnSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty ColumnSpacingProperty

Field Value

BindableProperty

CommitModeProperty

Identifies the CommitMode property.

Declaration

cs-api-definition
public static readonly BindableProperty CommitModeProperty

Field Value

BindableProperty

ConverterParameterProperty

Identifies the ConverterParameter property.

Declaration

cs-api-definition
public static readonly BindableProperty ConverterParameterProperty

Field Value

BindableProperty

ConverterProperty

Identifies the Converter property.

Declaration

cs-api-definition
public static readonly BindableProperty ConverterProperty

Field Value

BindableProperty

EditorStyleProperty

Identifies the EditorStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty EditorStyleProperty

Field Value

BindableProperty

EditorValueProperty

Identifies the EditorValue property.

Declaration

cs-api-definition
public static readonly BindableProperty EditorValueProperty

Field Value

BindableProperty

ErrorDisplayOptionsProperty

Identifies the ErrorDisplayOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorDisplayOptionsProperty

Field Value

BindableProperty

ErrorImageSourceProperty

Identifies the ErrorImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorImageSourceProperty

Field Value

BindableProperty

ErrorImageStyleProperty

Identifies the ErrorImageStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorImageStyleProperty

Field Value

BindableProperty

ErrorLabelStyleProperty

Identifies the ErrorLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorLabelStyleProperty

Field Value

BindableProperty

ErrorLengthProperty

Identifies the ErrorLength property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorLengthProperty

Field Value

BindableProperty

ErrorPositionProperty

Identifies the ErrorPosition property.

Declaration

cs-api-definition
public static readonly BindableProperty ErrorPositionProperty

Field Value

BindableProperty

HasPendingChangesProperty

Identifies the HasPendingChanges property.

Declaration

cs-api-definition
public static readonly BindableProperty HasPendingChangesProperty

Field Value

BindableProperty

HasValidationErrorsProperty

Identifies the HasValidationErrors property.

Declaration

cs-api-definition
public static readonly BindableProperty HasValidationErrorsProperty

Field Value

BindableProperty

HeaderDisplayOptionsProperty

Identifies the HeaderDisplayOptions property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderDisplayOptionsProperty

Field Value

BindableProperty

HeaderImageSourceProperty

Identifies the HeaderImageSource property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderImageSourceProperty

Field Value

BindableProperty

HeaderImageStyleProperty

Identifies the HeaderImageStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderImageStyleProperty

Field Value

BindableProperty

HeaderLabelStyleProperty

Identifies the HeaderLabelStyle property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderLabelStyleProperty

Field Value

BindableProperty

HeaderLengthProperty

Identifies the HeaderLength property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderLengthProperty

Field Value

BindableProperty

HeaderPositionProperty

Identifies the HeaderPosition property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderPositionProperty

Field Value

BindableProperty

HeaderTextProperty

Identifies the HeaderText property.

Declaration

cs-api-definition
public static readonly BindableProperty HeaderTextProperty

Field Value

BindableProperty

IsErrorImageVisibleProperty

Identifies the IsErrorImageVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsErrorImageVisibleProperty

Field Value

BindableProperty

IsErrorLabelVisibleProperty

Identifies the IsErrorLabelVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsErrorLabelVisibleProperty

Field Value

BindableProperty

IsHeaderImageVisibleProperty

Identifies the IsHeaderImageVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsHeaderImageVisibleProperty

Field Value

BindableProperty

IsHeaderLabelVisibleProperty

Identifies the IsHeaderLabelVisible property.

Declaration

cs-api-definition
public static readonly BindableProperty IsHeaderLabelVisibleProperty

Field Value

BindableProperty

IsReadOnlyProperty

Identifies the IsReadOnly property.

Declaration

cs-api-definition
public static readonly BindableProperty IsReadOnlyProperty

Field Value

BindableProperty

PropertyNameProperty

Identifies the PropertyName property.

Declaration

cs-api-definition
public static readonly BindableProperty PropertyNameProperty

Field Value

BindableProperty

PropertyValueProperty

Identifies the PropertyValue property.

Declaration

cs-api-definition
public static readonly BindableProperty PropertyValueProperty

Field Value

BindableProperty

RowSpacingProperty

Identifies the RowSpacing property.

Declaration

cs-api-definition
public static readonly BindableProperty RowSpacingProperty

Field Value

BindableProperty

ValidationModeProperty

Identifies the ValidationMode property.

Declaration

cs-api-definition
public static readonly BindableProperty ValidationModeProperty

Field Value

BindableProperty

Properties

ActualEditorStyle

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

Declaration

cs-api-definition
public Style ActualEditorStyle { get; }

Property Value

Style

ActualErrorDisplayOptions

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

Declaration

cs-api-definition
public DataFormErrorDisplayOptions ActualErrorDisplayOptions { get; }

Property Value

DataFormErrorDisplayOptions

ActualErrorImageSource

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

Declaration

cs-api-definition
public ImageSource ActualErrorImageSource { get; }

Property Value

ImageSource

ActualErrorImageStyle

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

Declaration

cs-api-definition
public Style ActualErrorImageStyle { get; }

Property Value

Style

ActualErrorLabelStyle

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

Declaration

cs-api-definition
public Style ActualErrorLabelStyle { get; }

Property Value

Style

ActualErrorLength

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

Declaration

cs-api-definition
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualErrorLength { get; }

Property Value

GridLength

ActualErrorPosition

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

Declaration

cs-api-definition
public DataFormErrorPosition ActualErrorPosition { get; }

Property Value

DataFormErrorPosition

ActualHeaderDisplayOptions

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

Declaration

cs-api-definition
public DataFormHeaderDisplayOptions ActualHeaderDisplayOptions { get; }

Property Value

DataFormHeaderDisplayOptions

ActualHeaderImageSource

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

Declaration

cs-api-definition
public ImageSource ActualHeaderImageSource { get; }

Property Value

ImageSource

ActualHeaderImageStyle

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

Declaration

cs-api-definition
public Style ActualHeaderImageStyle { get; }

Property Value

Style

ActualHeaderLabelStyle

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

Declaration

cs-api-definition
public Style ActualHeaderLabelStyle { get; }

Property Value

Style

ActualHeaderLength

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

Declaration

cs-api-definition
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualHeaderLength { get; }

Property Value

GridLength

ActualHeaderPosition

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

Declaration

cs-api-definition
public DataFormHeaderPosition ActualHeaderPosition { get; }

Property Value

DataFormHeaderPosition

ColumnSpacing

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

Declaration

cs-api-definition
public double ColumnSpacing { get; set; }

Property Value

double

CommitMode

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

Declaration

cs-api-definition
public DataFormCommitMode CommitMode { get; set; }

Property Value

DataFormCommitMode

Converter

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

Declaration

cs-api-definition
public IValueConverter Converter { get; set; }

Property Value

IValueConverter

ConverterParameter

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.

Declaration

cs-api-definition
public object ConverterParameter { get; set; }

Property Value

object

EditorStyle

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.

Declaration

cs-api-definition
public Style EditorStyle { get; set; }

Property Value

Style

EditorValue

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

Declaration

cs-api-definition
public object EditorValue { get; set; }

Property Value

object

ErrorDisplayOptions

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

Declaration

cs-api-definition
public DataFormErrorDisplayOptions? ErrorDisplayOptions { get; set; }

Property Value

DataFormErrorDisplayOptions?

ErrorImageSource

Gets or sets the ImageSource of the error icon.

Declaration

cs-api-definition
public ImageSource ErrorImageSource { get; set; }

Property Value

ImageSource

ErrorImageStyle

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

Declaration

cs-api-definition
public Style ErrorImageStyle { get; set; }

Property Value

Style

ErrorLabelStyle

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

Declaration

cs-api-definition
public Style ErrorLabelStyle { get; set; }

Property Value

Style

ErrorLength

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.

Declaration

cs-api-definition
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ErrorLength { get; set; }

Property Value

GridLength

ErrorPosition

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

Declaration

cs-api-definition
public DataFormErrorPosition? ErrorPosition { get; set; }

Property Value

DataFormErrorPosition?

HasPendingChanges

Gets a value indicating whether there are pending changes.

Declaration

cs-api-definition
public bool HasPendingChanges { get; }

Property Value

bool

HasValidationErrors

Gets a value indicating whether there are validation errors.

Declaration

cs-api-definition
public bool HasValidationErrors { get; }

Property Value

bool

HeaderDisplayOptions

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

Declaration

cs-api-definition
public DataFormHeaderDisplayOptions? HeaderDisplayOptions { get; set; }

Property Value

DataFormHeaderDisplayOptions?

HeaderImageSource

Gets or sets the ImageSource of the header icon.

Declaration

cs-api-definition
public ImageSource HeaderImageSource { get; set; }

Property Value

ImageSource

HeaderImageStyle

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

Declaration

cs-api-definition
public Style HeaderImageStyle { get; set; }

Property Value

Style

HeaderLabelStyle

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

Declaration

cs-api-definition
public Style HeaderLabelStyle { get; set; }

Property Value

Style

HeaderLength

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.

Declaration

cs-api-definition
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength HeaderLength { get; set; }

Property Value

GridLength

HeaderPosition

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

Declaration

cs-api-definition
public DataFormHeaderPosition? HeaderPosition { get; set; }

Property Value

DataFormHeaderPosition?

HeaderText

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

Declaration

cs-api-definition
public string HeaderText { get; set; }

Property Value

string

IsErrorImageVisible

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

Declaration

cs-api-definition
public bool IsErrorImageVisible { get; }

Property Value

bool

IsErrorLabelVisible

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

Declaration

cs-api-definition
public bool IsErrorLabelVisible { get; }

Property Value

bool

IsHeaderImageVisible

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

Declaration

cs-api-definition
public bool IsHeaderImageVisible { get; }

Property Value

bool

IsHeaderLabelVisible

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

Declaration

cs-api-definition
public bool IsHeaderLabelVisible { get; }

Property Value

bool

IsReadOnly

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

Declaration

cs-api-definition
public bool? IsReadOnly { get; set; }

Property Value

bool?

PropertyName

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

Declaration

cs-api-definition
public string PropertyName { get; set; }

Property Value

string

PropertyValue

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

Declaration

cs-api-definition
public object PropertyValue { get; set; }

Property Value

object

RowSpacing

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

Declaration

cs-api-definition
public double RowSpacing { get; set; }

Property Value

double

ValidationErrors

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.

Declaration

cs-api-definition
public IReadOnlyList<DataFormEditorValidationError> ValidationErrors { get; }

Property Value

IReadOnlyList<DataFormEditorValidationError>

ValidationMode

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

Declaration

cs-api-definition
public DataFormValidationMode ValidationMode { get; set; }

Property Value

DataFormValidationMode

ValidationRules

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.

Declaration

cs-api-definition
public IList<DataFormEditorValidationRule> ValidationRules { get; }

Property Value

IList<DataFormEditorValidationRule>

Methods

CancelChanges()

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.

Declaration

cs-api-definition
public void CancelChanges()

CommitChanges()

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.

Declaration

cs-api-definition
public bool CommitChanges()

Returns

bool

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

ValidateChanges()

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

Declaration

cs-api-definition
public bool ValidateChanges()

Returns

bool

True if the validation passes, false otherwise.

Events

ValidationCompleted

Raised when the validation of the editor has completed.

Declaration

cs-api-definition
public event EventHandler<DataFormEditorValidationCompletedEventArgs> ValidationCompleted

Event Value

EventHandler<DataFormEditorValidationCompletedEventArgs>

ValueChanged

Raised when the value of the editor has changed.

Declaration

cs-api-definition
public event EventHandler<DataFormEditorValueChangedEventArgs> ValueChanged

Event Value

EventHandler<DataFormEditorValueChangedEventArgs>

In this article
DefinitionConstructorsDataFormEditor()FieldsActualEditorStylePropertyActualErrorDisplayOptionsPropertyActualErrorImageSourcePropertyActualErrorImageStylePropertyActualErrorLabelStylePropertyActualErrorLengthPropertyActualErrorPositionPropertyActualHeaderDisplayOptionsPropertyActualHeaderImageSourcePropertyActualHeaderImageStylePropertyActualHeaderLabelStylePropertyActualHeaderLengthPropertyActualHeaderPositionPropertyColumnSpacingPropertyCommitModePropertyConverterParameterPropertyConverterPropertyEditorStylePropertyEditorValuePropertyErrorDisplayOptionsPropertyErrorImageSourcePropertyErrorImageStylePropertyErrorLabelStylePropertyErrorLengthPropertyErrorPositionPropertyHasPendingChangesPropertyHasValidationErrorsPropertyHeaderDisplayOptionsPropertyHeaderImageSourcePropertyHeaderImageStylePropertyHeaderLabelStylePropertyHeaderLengthPropertyHeaderPositionPropertyHeaderTextPropertyIsErrorImageVisiblePropertyIsErrorLabelVisiblePropertyIsHeaderImageVisiblePropertyIsHeaderLabelVisiblePropertyIsReadOnlyPropertyPropertyNamePropertyPropertyValuePropertyRowSpacingPropertyValidationModePropertyPropertiesActualEditorStyleActualErrorDisplayOptionsActualErrorImageSourceActualErrorImageStyleActualErrorLabelStyleActualErrorLengthActualErrorPositionActualHeaderDisplayOptionsActualHeaderImageSourceActualHeaderImageStyleActualHeaderLabelStyleActualHeaderLengthActualHeaderPositionColumnSpacingCommitModeConverterConverterParameterEditorStyleEditorValueErrorDisplayOptionsErrorImageSourceErrorImageStyleErrorLabelStyleErrorLengthErrorPositionHasPendingChangesHasValidationErrorsHeaderDisplayOptionsHeaderImageSourceHeaderImageStyleHeaderLabelStyleHeaderLengthHeaderPositionHeaderTextIsErrorImageVisibleIsErrorLabelVisibleIsHeaderImageVisibleIsHeaderLabelVisibleIsReadOnlyPropertyNamePropertyValueRowSpacingValidationErrorsValidationModeValidationRulesMethodsCancelChanges()CommitChanges()ValidateChanges()EventsValidationCompletedValueChanged
Not finding the help you need?
Contact Support