1.3 KiB
1.3 KiB
Grids
Grid component integration tests for MgGridBase layout persistence, column rendering, and URL link functionality.
Key Files
TestMgGrid.cs-- Test infrastructure for grid testing:TestGridOrderItemDataSource-- DataSource with the 3-parameter constructor required byMgGridBase.OnInitializedAsyncviaActivator.CreateInstance.DynamicColumnAddingEventArgs-- Event args for customizing dynamically added columns.TestMgGridBase<...>-- Abstract generic test grid that overrides layout persistence with in-memoryDictionarystorage and auto-builds columns fromTDataItemproperties via reflection.TestMgGridOrderItem-- Concrete test grid bound toTestOrderItementities.
MgGridBaseTests.cs--[TestClass]with tests for:- Column width persistence across grid re-renders.
- Layout storage population after render.
- Separate layout keys for differently named grids.
- Master grid detection.
- Reflection-based column building (verifies Id, ProductName, Quantity columns).
MgGridDataColumn.UrlLinkrendering with token replacement.
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.