You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(DetailsView): Add CascadingTypeParameter for cleaner child syntax
DetailsView now cascades its ItemType to child components via
[CascadingTypeParameter], matching GridView's behavior. This allows:
Before:
<BoundField ItemType="Course" DataField="Name" />
After:
<BoundField DataField="Name" />
Updated skills documentation to reflect this cleaner pattern.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
-`SelectMethod="GetCourse"` → `DataItem="_selectedCourse"` (bind to a field loaded in code)
360
360
-`ItemType="Namespace.Class"` → `ItemType="Class"` (use short name, ensure `@using` directive exists)
361
-
- BoundField needs `ItemType="Course"` attribute explicitly (required for column registration)
362
361
- BoundField, TemplateField, and other column types work inside `<Fields>` just like Web Forms
362
+
- Child components (BoundField, TemplateField) **inherit the type parameter** via Blazor's `[CascadingTypeParameter]` — no `ItemType` needed on each child
0 commit comments