From cbf34831d55c3bd2ce9687f2f496519d7879f922 Mon Sep 17 00:00:00 2001 From: CMSMartinK <134053094+CMSMartinK@users.noreply.github.com> Date: Wed, 16 Apr 2025 11:57:30 +0200 Subject: [PATCH 1/2] Update overview.md added info about complex properties under "Model Requirements" --- components/grid/editing/overview.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/grid/editing/overview.md b/components/grid/editing/overview.md index a9e125edf..0cfacf544 100644 --- a/components/grid/editing/overview.md +++ b/components/grid/editing/overview.md @@ -36,8 +36,9 @@ Adding or editing rows in the Grid sets the following requirements on the Grid m * The Grid model class must have a parameterless constructor. Otherwise, use the [Grid `OnModelInit` event](slug:grid-events#onmodelinit) to provide a data item instance [when the Grid needs to create one](#item-instances). Optinally, you can also [set some default values](slug://grid-kb-default-value-for-new-row). * All editable properties must be `public` and have setters. These properties must not be `readonly`. + * All complex properties must be instantiated in [Grid `OnModelInit` event](slug:grid-events#onmodelinit). * Self-referencing or inherited properties must not cause `StackOverflowException` or `AmbiguousMatchException` during [programmatic model instance creation](#item-instances). - + ## Edit Modes The Grid offers several ways to add and edit rows with a different user experience: From 30175a1da4997db66c137cd9859fdf236c05ec0e Mon Sep 17 00:00:00 2001 From: CMSMartinK <134053094+CMSMartinK@users.noreply.github.com> Date: Wed, 16 Apr 2025 12:11:12 +0200 Subject: [PATCH 2/2] further specification --- components/grid/editing/overview.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/grid/editing/overview.md b/components/grid/editing/overview.md index 0cfacf544..eb923c4d2 100644 --- a/components/grid/editing/overview.md +++ b/components/grid/editing/overview.md @@ -36,7 +36,7 @@ Adding or editing rows in the Grid sets the following requirements on the Grid m * The Grid model class must have a parameterless constructor. Otherwise, use the [Grid `OnModelInit` event](slug:grid-events#onmodelinit) to provide a data item instance [when the Grid needs to create one](#item-instances). Optinally, you can also [set some default values](slug://grid-kb-default-value-for-new-row). * All editable properties must be `public` and have setters. These properties must not be `readonly`. - * All complex properties must be instantiated in [Grid `OnModelInit` event](slug:grid-events#onmodelinit). + * All complex properties, that are used in the grid, must be instantiated in [Grid `OnModelInit` event](slug:grid-events#onmodelinit). * Self-referencing or inherited properties must not cause `StackOverflowException` or `AmbiguousMatchException` during [programmatic model instance creation](#item-instances). ## Edit Modes