Browse Source

docs: clarify DataGrid template context changes in migration guide

pull/24906/head
maliming 1 month ago
parent
commit
ead292fa94
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 2
      docs/en/release-info/migration-guides/blazorise-2-0-migration.md

2
docs/en/release-info/migration-guides/blazorise-2-0-migration.md

@ -80,6 +80,8 @@ Typical updates:
- `Method(context)` -> `Method(context.Item)`
- `() => Method(context)` -> `() => Method(context.Item)`
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)
DataGrid column `Width` moved from plain string to fluent sizing APIs:

Loading…
Cancel
Save