4

Blazor Grid — Integrated Editor Appearance (v22.2)

 1 year ago
source link: https://community.devexpress.com/blogs/aspnet/archive/2023/01/10/blazor-grid-appearance-of-integrated-editors-v22-2.aspx
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Blazor Grid — Integrated Editor Appearance (v22.2)

In our most recent major release (v22.2), we introduced a new editor-related rendering mode within our Blazor Grid control.

Previously, the DevExpress Blazor Grid rendered editors (within the filter row/edit row cells) as standalone controls with associated borders and paddings.

blazor-grid-integrated-editors-1.png

If you wish to change this behavior and force our Blazor Data Editors to share the same border with the Grid cell itself, set the EditorRenderMode property to Integrated. This new rendering mode is applied to DevExpress Blazor editors placed directly in the following templates:

<DxGrid Data="forecasts"
        ShowFilterRow="true"
        EditorRenderMode="GridEditorRenderMode.Integrated">
  <Columns>
    <DxGridDataColumn FieldName="Date" >
      <FilterRowCellTemplate>
        <DxDateEdit Date="(DateTime?)context.FilterRowValue"
                    DateChanged="(DateTime? v) => context.FilterRowValue = v" />
      </FilterRowCellTemplate>
    </DxGridDataColumn>
    <DxGridDataColumn FieldName="Temperature" >
      <FilterRowCellTemplate>
        <DxSpinEdit Value="(int?)context.FilterRowValue"
                    ValueChanged="(int? v) => context.FilterRowValue = v" />
      </FilterRowCellTemplate>
    </DxGridDataColumn>
    <DxGridDataColumn FieldName="Summary" />
  </Columns>
</DxGrid>

When used in this manner, borders for our Blazor Editor components are not displayed on-screen. As such, our Blazor Grid takes up less space, and row height does not change once data editing begins.

blazor-grid-integrated-editors-2.png

In the future, we expect to activate this feature by default and implement a global option to enable the previous rendering option.

To explore our new rendering mode in greater detail, feel free to review the following online demos: Edit Row | Filter Row

Your Feedback Counts

As always, we highly appreciate your feedback.

Blazor Grid – Appearance of Integrated Editors (v22.2)

1. Are you going to enable integrated editor appearance in your Grids?

Yes, I will enable it in all Grids in my app

Yes, I will enable it in some Grids

No

2. Feel free to share your thoughts about integrated editors.

Free DevExpress Products – Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We’ll be happy to follow-up.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK