Refactored the grid filter panel system: - Renamed "quick-filter panel" to "filter panel" throughout. - Introduced IMgGridFilterPanelComponent interface for filter panel contract. - Split MgTagBox (now behavior-free) and new MgGridFilterPanelTagBox for grid filter logic. - Grid tracks filter panel components, synchronizes criteria, and exposes new filter panel methods. - Filter panel always rendered (CSS-hidden when off) to prevent invisible filtering. - Added right-aligned "Clear Filters" button for panel-owned filters. - Updated docs, parameter tables, and glossary for new terminology and structure. - Updated usages to new component; legacy grid class implements no-op interface. - Documented edge cases and updated CSS for new layout. |
||
|---|---|---|
| .. | ||
| GridEditMode.cs | ||
| MgGridBase.cs | ||
| MgGridDataColumn.cs | ||
| MgGridFilterPanelTagBox.cs | ||
| MgGridHelper.cs | ||
| MgGridInfoPanel.razor | ||
| MgGridInfoPanel.razor.cs | ||
| MgGridInfoPanel.razor.css | ||
| MgGridInfoPanelHelper.cs | ||
| MgGridSignalRDataSource.cs | ||
| MgGridToolbarBase.cs | ||
| MgGridToolbarHelper.cs | ||
| MgGridToolbarTemplate.razor | ||
| MgGridWithInfoPanel.razor | ||
| README.md | ||
README.md
Grids
Core grid system built on DevExpress DxGrid. For the full technical reference see AyCode.Blazor.Components/docs/MGGRID/README.md.
Key Files
MgGridBase.cs—MgGridBase<TSignalRDataSource, TDataItem, TId, TLoggerClient>, the main abstract grid component. ExtendsDxGridwith SignalR CRUD, layout persistence, master-detail hierarchy, edit state tracking, fullscreen toggle, and a quick-filterFilterPanelslot (rendersMgTagBoxcontrols below the toolbar in a styled.mg-grid-filter-panelcontainer; toolbar Show/Hide toggle).MgGridWithInfoPanel.razor—DxSplitterwrapper: grid (left) + InfoPanel (right), fullscreen overlay, splitter size persistence.MgGridToolbarBase.cs— ExtendsDxToolbarwithGrid,RefreshClick, andShowOnlyIconparameters.MgGridToolbarTemplate.razor— Full toolbar template: New/Edit/Delete/Save/Cancel, row navigation, layout menu (Load/Save/Reset), column chooser, export, reload, filter-panel toggle (visible only when the grid has aFilterPanel), fullscreen. Extensible viaToolbarItemsExtended.MgGridDataColumn.cs— ExtendsDxGridDataColumnwith InfoPanel parameters (ShowInInfoPanel,InfoPanelOrder,InfoPanelDisplayFormat) andUrlLinktemplate with{Property}placeholder substitution via compiled accessors.MgGridInfoPanel.razor/.razor.cs—MgGridInfoPanelimplementingIInfoPanelBase. Responsive column layout (1-4 columns with breakpoints), edit/view mode with typed editors, template system, sticky positioning via JS interop.MgGridSignalRDataSource.cs—GridCustomDataSourcewrappingAcSignalRDataSource. Local cache for seen filter criteria, background refresh.GridEditMode.cs—MgGridEditStateenum:None,New,Edit.MgGridHelper.cs,MgGridToolbarHelper.cs,MgGridInfoPanelHelper.cs— Placeholder helpers (empty).