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

Event arguments allowing to customize the generated DataFormEditor for a given property in the RadDataForm.

Definition

Namespace:Telerik.Maui.Controls

Assembly:Telerik.Maui.Controls.dll

Syntax:

C#
public class DataFormEditorGeneratedEventArgs : EventArgs

Inheritance: objectEventArgsDataFormEditorGeneratedEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes a new instance of the DataFormEditorGeneratedEventArgs class.

C#
public DataFormEditorGeneratedEventArgs(string propertyName, Type propertyType, DataFormEditor defaultEditor)
Parameters:propertyNamestring

Specifies the name of the property from the data model, for which to generate an editor.

propertyTypeType

Specifies the type of the property from the data model, for which to generate an editor.

defaultEditorDataFormEditor

Specifies the default editor, which is generated for the specified property.

Initializes a new instance of the DataFormEditorGeneratedEventArgs class.

C#
public DataFormEditorGeneratedEventArgs(string propertyName, Type propertyType)
Parameters:propertyNamestring

Specifies the name of the property from the data model, for which to generate an editor.

propertyTypeType

Specifies the type of the property from the data model, for which to generate an editor.

Properties

Gets or sets the editor, which is generated for the specified property. To skip the generation of the editor, set this property to null.

C#
public DataFormEditor Editor { get; set; }

Gets the name of property from the data model, for which to generate an editor.

C#
public string PropertyName { get; }

Gets the type of property from the data model, for which to generate an editor.

C#
public Type PropertyType { get; }