Breaking Change T1262615
Visible to All Users

XAF Blazor - The default property editor is changed from FileDataPropertyEditor to DxFileDataPropertyEditor for projects with the File Attachments module

What Changed

In v24.2, the DxFileDataPropertyEditor is the default property editor for new and existing ASP.NET Core Blazor projects with the File Attachments module. The previous default editor (FileDataPropertyEditor) has been moved to maintenance support mode. This means that no new features/capabilities will be added to that component.

Reasons for Change

In a recent release, a new component - Blazor File Input - was added to the DevExpress ASP.NET Core Blazor product line. This component allows you to set up accepted types for downloaded files. This capability allows us to partially support the FileTypeFilter attribute in Blazor apps.

As a result, we changed the default property editor in XAF apps to an editor based on the new Blazor File Input component. Another reason for this change is that the new default property editor is easier to maintain and customize.

Impact on Existing Apps

This change affects your application only if you customized FileDataPropertyEditor. These customizations do not apply to the new editor, unless you revert to the previous property editor type (see the section below).

How to Update Existing Apps

The new editor provides access to several component models for customization:

How to Revert to Previous Behavior

To roll back to FileDataPropertyEditor, do the following:

  1. Open the Model.xafml file of your SolutionName.Blazor.Server or SolutionName.Module.Blazor project.
  2. In the Model Editor, navigate to the ViewItems | PropertyEditors | IFileData node and set the EditorType property to DevExpress.ExpressApp.FileAttachments.Blazor.Editors.FileDataPropertyEditor:
XML
<ViewItems> <PropertyEditor Name="PropertyEditors"> <RegisteredPropertyEditor PropertyType="DevExpress.Persistent.Base.IFileData" EditorType="DevExpress.ExpressApp.FileAttachments.Blazor.Editors.FileDataPropertyEditor" />

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.