AyCode.Blazor/AyCode.Blazor.Components/Components/Grids
Loretta 85dbb853c7 Update ToonTests to serialize type metadata only
Replaced AcToonSerializer.Serialize with SerializeTypeMetadata<FullProcessModel> in ToonTests. The test now serializes only the type metadata for FullProcessModel using the domain description, rather than serializing the actual data instance. Assertions and comments remain unchanged.
2026-03-28 17:25:12 +01:00
..
GridEditMode.cs Refactor grid InfoPanel: sticky, responsive, new icons 2025-12-17 10:20:17 +01:00
MgGridBase.cs Add AI process modal to shipping grid with toolbar button 2025-12-23 15:22:52 +01:00
MgGridDataColumn.cs Refactor MgGridDataColumn URL templating & update csproj refs 2026-03-24 18:38:44 +01:00
MgGridHelper.cs Refactor MgGridInfoPanel for theme, UX, and PDF perf 2025-12-19 13:59:00 +01:00
MgGridInfoPanel.razor Add URL link support to grid columns and info panel 2025-12-22 14:37:55 +01:00
MgGridInfoPanel.razor.cs Add MgLazyLoadContent, grid layout refactor, tests 2025-12-21 16:29:36 +01:00
MgGridInfoPanel.razor.css DevExpress Fluent theme: grid/info panel refactor 2025-12-21 08:24:40 +01:00
MgGridInfoPanelHelper.cs Refactor MgGridInfoPanel for theme, UX, and PDF perf 2025-12-19 13:59:00 +01:00
MgGridSignalRDataSource.cs Refactor SignalR hub registration and background tasks 2026-01-06 08:55:38 +01:00
MgGridToolbarBase.cs Refactor grid toolbar and InfoPanel for reusability 2025-12-17 18:31:59 +01:00
MgGridToolbarHelper.cs Refactor MgGridInfoPanel for theme, UX, and PDF perf 2025-12-19 13:59:00 +01:00
MgGridToolbarTemplate.razor Improve toolbar controls and async UX in stock taking 2026-02-07 08:55:00 +01:00
MgGridWithInfoPanel.razor Allow info panel collapse, improve grids, update SignalR 2026-03-22 16:04:17 +01:00
README.md Update ToonTests to serialize type metadata only 2026-03-28 17:25:12 +01:00

README.md

Grids

Core grid system built on DevExpress DxGrid with SignalR-based data binding, CRUD operations, layout persistence, fullscreen mode, and an info panel for row details.

Key Files

  • MgGridBase.cs -- MgGridBase<TSignalRDataSource, TDataItem, TId, TLoggerClient>, the main abstract grid component. Extends DxGrid and binds to an AcSignalRDataSource for real-time CRUD via SignalR message tags. Supports master-detail hierarchy (ParentGrid, GetRootGrid), row navigation, edit state tracking, layout auto-save/load/reset via localStorage, and fullscreen toggle.
  • MgGridSignalRDataSource.cs -- MgGridSignalRDataSource<TDataItem, TId>, a GridCustomDataSource that wraps AcSignalRDataSource. Returns local data instantly for previously-seen filter criteria while refreshing from the server in the background. Handles filter, sort, paging, unique values, and summary calculations locally.
  • MgGridDataColumn.cs -- Extends DxGridDataColumn with InfoPanel visibility/order parameters and a UrlLink template that renders cells as hyperlinks with {Property} placeholder substitution via compiled accessors.
  • MgGridInfoPanel.razor.cs -- MgGridInfoPanel component implementing IInfoPanelBase. Displays focused-row details with responsive column layout, edit/view mode, sticky positioning via JS interop, and cached column/display-text lookups.
  • MgGridToolbarBase.cs -- Extends DxToolbar with Grid, RefreshClick, and ShowOnlyIcon parameters.
  • GridEditMode.cs -- MgGridEditState enum: None, New, Edit.
  • MgGridHelper.cs -- Placeholder helper (empty).
  • MgGridToolbarHelper.cs -- Placeholder helper (empty).
  • MgGridInfoPanelHelper.cs -- Placeholder helper (empty).

LLM Maintenance: If you modify code in this folder, update this README to reflect the changes. If you notice the README content does not match the current code, automatically update the README to match the code.