For `SelectionMode="DateInputSelectionMode.Range"`:
For `SelectionMode="DateInputSelectionMode.Range"`, the old `Dates` / `DatesChanged` parameters are replaced by the unified `Value` / `ValueChanged`. Use an array or `IReadOnlyList<T>` as `TValue`:
- `ValueChanged` -> `ValuesChanged`
- `@bind-Dates` -> `@bind-Value` (with `TValue="DateTime[]"` or `TValue="IReadOnlyList<DateTime>"`)
@ -61,11 +66,23 @@ For non-range `DatePicker` usage:
### Select multiple mode
For `<Select Multiple ...>`:
For `<Select Multiple ...>`, the old `SelectedValues` / `SelectedValuesChanged` parameters are replaced by the unified `Value` / `ValueChanged`. Use an array or `IReadOnlyList<T>` as `TValue`:
- `Value` -> `Values`
- `ValueChanged` -> `ValuesChanged`
- `@bind-Value` -> `@bind-Values`
- `@bind-SelectedValues` -> `@bind-Value` (with `TValue="string[]"` or `TValue="IReadOnlyList<string>"`)
- For custom template variable names, same rule applies: `row.Property` -> `row.Item.Property`
The same rule also applies to action handlers in `DataGridEntityActionsColumn` and `DataGridCommandColumn` (such as `Clicked`, `Visible`, and `ConfirmationMessage`):
Important: This change applies to DataGrid template contexts only (`DisplayTemplate` in `DataGridColumn`, `DataGridEntityActionsColumn`, etc.). In non-DataGrid templates (for example `TreeView``NodeContent`), `context` is already the item and should remain unchanged (for example `DeleteMenuItemAsync(context)`).
### 5.3 Width type change (string -> Fluent sizing)
@ -132,3 +154,4 @@ Width="@BlazoriseFluentSizingParse.Parse(column.Width)" // column.Width is a str
This document may not cover all Blazorise 2.0 changes. For completeness, refer to the official migration guide and release notes: