EditingFieldModelFactory Class
Enables you to register custom editors for report editing fields.
Namespace: DevExpress.Blazor.Reporting.EditingFields
Assembly: DevExpress.Blazor.v24.2.Viewer.dll
NuGet Package: DevExpress.Blazor.Viewer
Declaration
Remarks
The following code registers custom mask editors for the editing fields:
@code {
protected override async Task OnAfterRenderAsync(bool firstRender) {
if(firstRender) {
EditingFieldModelFactory.RegisterMaskEditor("Name",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"[A-Z -.]+" });
EditingFieldModelFactory.RegisterMaskEditor("UppercaseLatinLetters",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"[A-Z]+" });
EditingFieldModelFactory.RegisterMaskEditor("NumbersAndUppercaseLatinLetters",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"[A-Z0-9]+" });
EditingFieldModelFactory.RegisterMaskEditor("UppercaseText",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"[A-Z0-9 ,-/]+" });
EditingFieldModelFactory.RegisterMaskEditor("Day",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"(0[1-9])|([1-2][0-9])|(3[0-1])" });
EditingFieldModelFactory.RegisterMaskEditor("Month",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"(0[1-9])|(1[0-2])" });
EditingFieldModelFactory.RegisterMaskEditor("Year",
new MaskEditorOptions() { MaskMode = MaskMode.RegEx,
Mask = @"[0-2]([0-9]{3})" });
}
await base.OnAfterRenderAsync(firstRender);
}
}
Inheritance
Object
EditingFieldModelFactory
See Also