Skip to content

Commit ead292f

Browse files
committed
docs: clarify DataGrid template context changes in migration guide
1 parent 24a3d12 commit ead292f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ Typical updates:
8080
- `Method(context)` -> `Method(context.Item)`
8181
- `() => Method(context)` -> `() => Method(context.Item)`
8282

83+
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)`).
84+
8385
### 5.3 Width type change (string -> Fluent sizing)
8486

8587
DataGrid column `Width` moved from plain string to fluent sizing APIs:

0 commit comments

Comments
 (0)