From 3b2aa36fa4197ba2cd83f70e84c4852c7d015917 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov Date: Thu, 28 Mar 2024 16:26:40 +0200 Subject: [PATCH 01/14] docs(grid): Add a KB on null reference exception from the GridRowCollection class Related to: #8796 --- .../grid-rowcollection-nullreference.md | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 knowledge-base/grid-rowcollection-nullreference.md diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md new file mode 100644 index 000000000..1bfe66a54 --- /dev/null +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -0,0 +1,53 @@ +--- +title: Null Reference Expection from the GridRowCollection +description: Fixing a Null Reference Exception Thrown from the GridRowCollection. +type: troubleshooting +page_title: Null Reference Expection from the GridRowCollection +slug: grid-kb-nullref-gridrowcollection +position: +tags: +ticketid: 1643250, 1642910, 1604815, 1574971, 1577863, 1580684 +res_type: kb +--- + +## Environment + + + + + + + +
ProductGrid for Blazor
+ + +## Description + +I upgraded the version of the Telerik UI from Blazor components from `<3.0.0` to `>3.0.0` and I get a `NullReferenceException` from the `GridRowCollection` class. + +## Error Message + +>warning Error: System.NullReferenceException: Object reference not set to an instance of an object. + at Telerik.Blazor.Components.Grid.GridRowCollection`1.BuildRenderTree(RenderTreeBuilder __builder) + +## Cause + +The Telerik Grid for Blazor throws a NullReferenceException from the GridRowCollection class when both the `Data` paramater and `OnRead` event handler are defined: + +````CSHTML + + + ... + +```` + +## Solution + +Remove either the `Data` parameter or the `OnRead` event handler. + +## See Also + +* [Changes in the OnRead Event in 3.0.0]({%slug changes-in-3-0-0%}#onread) +* [Common OnRead Documentation]({%slug common-features-data-binding-onread%}) +* [Common How to Provide Data Documentation]({%slug common-features-data-binding-overview%}) + From 1812550f6d8b2e6483519b3575ed6942b218929e Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Mon, 1 Apr 2024 09:09:47 +0300 Subject: [PATCH 02/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index 1bfe66a54..f410fce06 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -32,7 +32,7 @@ I upgraded the version of the Telerik UI from Blazor components from `<3.0.0` to ## Cause -The Telerik Grid for Blazor throws a NullReferenceException from the GridRowCollection class when both the `Data` paramater and `OnRead` event handler are defined: +The Telerik UI Grid for Blazor throws a `NullReferenceException` from the `GridRowCollection` class when both the `Data` parameter and `OnRead` event handler are defined: ````CSHTML From e7b7b6356201c59a839d595d8d286471a1cf898f Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:04 +0300 Subject: [PATCH 03/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index f410fce06..762aaf5f4 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -1,5 +1,5 @@ --- -title: Null Reference Expection from the GridRowCollection +title: NullReferenceException for GridRowCollection description: Fixing a Null Reference Exception Thrown from the GridRowCollection. type: troubleshooting page_title: Null Reference Expection from the GridRowCollection From cc1d157ff342bf42f18ccf99899ef1072509222c Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:09 +0300 Subject: [PATCH 04/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index 762aaf5f4..d2e533d2a 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -2,7 +2,7 @@ title: NullReferenceException for GridRowCollection description: Fixing a Null Reference Exception Thrown from the GridRowCollection. type: troubleshooting -page_title: Null Reference Expection from the GridRowCollection +page_title: NullReferenceException for the Grid GridRowCollection slug: grid-kb-nullref-gridrowcollection position: tags: From d3ad845da3691dc6f2bea917af76add61787ed6f Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:19 +0300 Subject: [PATCH 05/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index d2e533d2a..c8eee61ae 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -34,12 +34,12 @@ I upgraded the version of the Telerik UI from Blazor components from `<3.0.0` to The Telerik UI Grid for Blazor throws a `NullReferenceException` from the `GridRowCollection` class when both the `Data` parameter and `OnRead` event handler are defined: -````CSHTML +
- - ... +````CSHTML + -```` ## Solution From 9c7f7478571fef4807dcaaaa7c9c1caffced6db7 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:26 +0300 Subject: [PATCH 06/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index c8eee61ae..c63cc0aaf 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -47,7 +47,7 @@ Remove either the `Data` parameter or the `OnRead` event handler. ## See Also -* [Changes in the OnRead Event in 3.0.0]({%slug changes-in-3-0-0%}#onread) +* [Changes in the `OnRead` event in version 3.0]({%slug changes-in-3-0-0%}#onread) * [Common OnRead Documentation]({%slug common-features-data-binding-onread%}) * [Common How to Provide Data Documentation]({%slug common-features-data-binding-overview%}) From f50d14bd328d462f14495a63002ef3e035c13fd4 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:32 +0300 Subject: [PATCH 07/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index c63cc0aaf..f74cdadd7 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -49,5 +49,5 @@ Remove either the `Data` parameter or the `OnRead` event handler. * [Changes in the `OnRead` event in version 3.0]({%slug changes-in-3-0-0%}#onread) * [Common OnRead Documentation]({%slug common-features-data-binding-onread%}) -* [Common How to Provide Data Documentation]({%slug common-features-data-binding-overview%}) +* [How to provide data to Telerik Blazor components]({%slug common-features-data-binding-overview%}#how-to-provide-data) From de38020924a8d92f9321bc95e60030ee36ebb737 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:20:37 +0300 Subject: [PATCH 08/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index f74cdadd7..da0fb3571 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -48,6 +48,6 @@ Remove either the `Data` parameter or the `OnRead` event handler. ## See Also * [Changes in the `OnRead` event in version 3.0]({%slug changes-in-3-0-0%}#onread) -* [Common OnRead Documentation]({%slug common-features-data-binding-onread%}) +* [Common `OnRead` event documentation]({%slug common-features-data-binding-onread%}) * [How to provide data to Telerik Blazor components]({%slug common-features-data-binding-overview%}#how-to-provide-data) From 360786f355ed4f8592ae7cd09de7dd6b46166222 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Tue, 2 Apr 2024 14:21:02 +0300 Subject: [PATCH 09/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index da0fb3571..deaae0411 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -32,7 +32,7 @@ I upgraded the version of the Telerik UI from Blazor components from `<3.0.0` to ## Cause -The Telerik UI Grid for Blazor throws a `NullReferenceException` from the `GridRowCollection` class when both the `Data` parameter and `OnRead` event handler are defined: +The Telerik UI Grid for Blazor throws a `NullReferenceException` for the `GridRowCollection` property when using both the `Data` parameter and `OnRead` event handler:
From eb518020e51d188c47de30f99c18715609e0a2d9 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Thu, 16 May 2024 10:36:52 +0300 Subject: [PATCH 10/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Yordan <60105689+yordan-mitev@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index deaae0411..9a1effd11 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -23,7 +23,7 @@ res_type: kb ## Description -I upgraded the version of the Telerik UI from Blazor components from `<3.0.0` to `>3.0.0` and I get a `NullReferenceException` from the `GridRowCollection` class. +I upgraded the version of the Telerik UI from Blazor components and I get a `NullReferenceException` from the `GridRowCollection` class. ## Error Message From 97f11b2ef0b1ba23766fba9e50eddebf2084fb52 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Thu, 16 May 2024 10:37:36 +0300 Subject: [PATCH 11/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index 9a1effd11..f24c09abc 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -1,6 +1,6 @@ --- title: NullReferenceException for GridRowCollection -description: Fixing a Null Reference Exception Thrown from the GridRowCollection. +description: How to fix a null reference exception thrown for the GridRowCollection property of the Telerik Blazor Grid. type: troubleshooting page_title: NullReferenceException for the Grid GridRowCollection slug: grid-kb-nullref-gridrowcollection From 799f7c38b692e5beb5cd746379de442e050e195b Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Thu, 16 May 2024 10:37:41 +0300 Subject: [PATCH 12/14] Update knowledge-base/grid-rowcollection-nullreference.md Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- knowledge-base/grid-rowcollection-nullreference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-rowcollection-nullreference.md index f24c09abc..4d2ce9333 100644 --- a/knowledge-base/grid-rowcollection-nullreference.md +++ b/knowledge-base/grid-rowcollection-nullreference.md @@ -3,7 +3,7 @@ title: NullReferenceException for GridRowCollection description: How to fix a null reference exception thrown for the GridRowCollection property of the Telerik Blazor Grid. type: troubleshooting page_title: NullReferenceException for the Grid GridRowCollection -slug: grid-kb-nullref-gridrowcollection +slug: grid-kb-nullreferenceexception-gridrowcollection position: tags: ticketid: 1643250, 1642910, 1604815, 1574971, 1577863, 1580684 From c3fdeff0dbaa8a06bf534c79d93163014c548f91 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Thu, 16 May 2024 15:36:24 +0300 Subject: [PATCH 13/14] docs(grid): rename KB --- ...erence.md => grid-nullreferenceexception-gridrowcollection.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename knowledge-base/{grid-rowcollection-nullreference.md => grid-nullreferenceexception-gridrowcollection.md} (100%) diff --git a/knowledge-base/grid-rowcollection-nullreference.md b/knowledge-base/grid-nullreferenceexception-gridrowcollection.md similarity index 100% rename from knowledge-base/grid-rowcollection-nullreference.md rename to knowledge-base/grid-nullreferenceexception-gridrowcollection.md From fac1cc62f93be7708826587e176c9d2705d73085 Mon Sep 17 00:00:00 2001 From: Svetoslav Dimitrov <61150560+svdimitr@users.noreply.github.com> Date: Thu, 16 May 2024 15:52:22 +0300 Subject: [PATCH 14/14] docs(grid): improve KB based on review --- .../grid-nullreferenceexception-gridrowcollection.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/knowledge-base/grid-nullreferenceexception-gridrowcollection.md b/knowledge-base/grid-nullreferenceexception-gridrowcollection.md index 4d2ce9333..2b75e4fa9 100644 --- a/knowledge-base/grid-nullreferenceexception-gridrowcollection.md +++ b/knowledge-base/grid-nullreferenceexception-gridrowcollection.md @@ -27,8 +27,10 @@ I upgraded the version of the Telerik UI from Blazor components and I get a `Nul ## Error Message ->warning Error: System.NullReferenceException: Object reference not set to an instance of an object. - at Telerik.Blazor.Components.Grid.GridRowCollection`1.BuildRenderTree(RenderTreeBuilder __builder) +```` +Error: System.NullReferenceException: Object reference not set to an instance of an object. +at Telerik.Blazor.Components.Grid.GridRowCollection`1.BuildRenderTree(RenderTreeBuilder __builder) +```` ## Cause @@ -40,6 +42,7 @@ The Telerik UI Grid for Blazor throws a `NullReferenceException` for the `GridRo +```` ## Solution