22 lines
957 B
Markdown
22 lines
957 B
Markdown
# MgGrid — Fullscreen & Rendering
|
|
|
|
> Part of the MgGrid system. See `README.md` for overview and component hierarchy.
|
|
|
|
## Fullscreen Mode
|
|
|
|
Two modes depending on whether `MgGridWithInfoPanel` wraps the grid:
|
|
|
|
| Scenario | Behavior |
|
|
|---|---|
|
|
| **With wrapper** | `ToggleFullscreen()` delegates to wrapper — fullscreen includes grid + InfoPanel |
|
|
| **Standalone** | Grid renders its own `mg-fullscreen-overlay` with header (Caption + close button) and body |
|
|
|
|
## Rendering
|
|
|
|
`BuildRenderTree` uses manual render tree building (not Razor markup):
|
|
|
|
1. Outer `CascadingValue<IMgGridBase>` — provides this grid as `ParentGrid` to children
|
|
2. If standalone fullscreen: `div.mg-fullscreen-overlay` > `div.mg-fullscreen-header` + `div.mg-fullscreen-body` > `base.BuildRenderTree`
|
|
3. If normal: `div[style=display:contents]` > `base.BuildRenderTree`
|
|
4. `_gridRenderKey` (Guid) used as element key — changed by `ForceRenderAsync()` to force re-initialization
|