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/5] 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/5] 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 From 2f08ea42de5d3df0c8d8f988260b10ac99278779 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:49:26 +0300 Subject: [PATCH 3/5] Update components/grid/editing/overview.md Co-authored-by: Iva Stefanova Koevska-Atanasova --- 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 eb923c4d2..f054d331a 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, that are used in the grid, must be instantiated in [Grid `OnModelInit` event](slug:grid-events#onmodelinit). +* All complex properties used in the Grid must be instantiated in the [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 From 62c1830bcdf8641fff511d01528dd724c542a5c4 Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:49:39 +0300 Subject: [PATCH 4/5] Update components/grid/editing/overview.md --- components/grid/editing/overview.md | 1 - 1 file changed, 1 deletion(-) diff --git a/components/grid/editing/overview.md b/components/grid/editing/overview.md index f054d331a..8e996c03f 100644 --- a/components/grid/editing/overview.md +++ b/components/grid/editing/overview.md @@ -38,7 +38,6 @@ Adding or editing rows in the Grid sets the following requirements on the Grid m * All editable properties must be `public` and have setters. These properties must not be `readonly`. * All complex properties used in the Grid must be instantiated in the [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 2b33a3675c66c6bb6256186227311059888c94bd Mon Sep 17 00:00:00 2001 From: Dimo Dimov <961014+dimodi@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:50:35 +0300 Subject: [PATCH 5/5] Update components/grid/editing/overview.md --- components/grid/editing/overview.md | 1 + 1 file changed, 1 insertion(+) diff --git a/components/grid/editing/overview.md b/components/grid/editing/overview.md index 8e996c03f..ead20360c 100644 --- a/components/grid/editing/overview.md +++ b/components/grid/editing/overview.md @@ -38,6 +38,7 @@ Adding or editing rows in the Grid sets the following requirements on the Grid m * All editable properties must be `public` and have setters. These properties must not be `readonly`. * All complex properties used in the Grid must be instantiated in the [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: