Completed
Last Updated: 23 Feb 2024 10:42 by ADMIN
Release 4.3.0 (06/07/2023) (R2 2023)
Robert
Created on: 20 Mar 2023 14:40
Category: Grid
Type: Bug Report
5
PopupEdit throws when the Grid is bound to DataTable or ExpandoObject

Triggering Edit in a Grid bound to a DataTable or ExpandoObject and with edit mode set to Popup throws an unhandled exception. This started to occur in 4.1.0 - the same code runs fine on 4.0.1

To reproduce:

  1. run https://blazorrepl.telerik.com/cduHQkPS34V0enTc50 (note this is the DataTable demo, but with changed edit mode)
  2. trigger edit mode
  3. observe the unhandled exception
1 comment
James
Posted on: 05 May 2023 08:48
Updated to 4.2.0 and still get errors. 

azor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Value cannot be null. (Parameter 'property')
System.ArgumentNullException: Value cannot be null. (Parameter 'property')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
   at Telerik.Blazor.Extensions.ReflectionExtensions.GetNestedExpression[Object](Object item, String field)
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_ValueExpression()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_FieldIdentifier()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_IsValid()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.OnParametersSet()
   at Microsoft.AspNetCore.Components.ComponentBase.CallOnParametersSetAsync()
   at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync()
u @ blazor.webassembly.js:1
Ke._internal.dotNetCriticalError @ blazor.webassembly.js:1
_bound_js_Blazor__internal_dotNetCriticalError @ _bound_js_Blazor__internal_dotNetCriticalError:7
Ss @ dotnet.7.0.5.rfrjyre5do.js:5
_mono_wasm_invoke_bound_function @ dotnet.7.0.5.rfrjyre5do.js:14
$func313 @ 00992dae:0x1d43c
$func283 @ 00992dae:0x1c935
$func221 @ 00992dae:0xe025
$func220 @ 00992dae:0xce95
$func8115 @ 00992dae:0x1a21ff
$func2054 @ 00992dae:0x85c24
$func2052 @ 00992dae:0x85b9a
$func1395 @ 00992dae:0x686eb
$func313 @ 00992dae:0x1d4c0
$func283 @ 00992dae:0x1c935
$func221 @ 00992dae:0xe025
$func220 @ 00992dae:0xce95
$func8115 @ 00992dae:0x1a21ff
$func2054 @ 00992dae:0x85c24
$func2059 @ 00992dae:0x8628c
$func2086 @ 00992dae:0x8834b
$mono_wasm_invoke_method_ref @ 00992dae:0x9bd1
Module._mono_wasm_invoke_method_ref @ dotnet.7.0.5.rfrjyre5do.js:14
_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet @ _Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet:29
beginInvokeDotNetFromJS @ blazor.webassembly.js:1
b @ blazor.webassembly.js:1
invokeMethodAsync @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
invokeWhenHeapUnlocked @ blazor.webassembly.js:1
S @ blazor.webassembly.js:1
A @ blazor.webassembly.js:1
dispatchGlobalEventToAllElements @ blazor.webassembly.js:1
onGlobalEvent @ blazor.webassembly.js:1
2blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Value cannot be null. (Parameter 'property')
System.ArgumentNullException: Value cannot be null. (Parameter 'property')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
   at Telerik.Blazor.Extensions.ReflectionExtensions.GetNestedExpression[Object](Object item, String field)
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_ValueExpression()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_FieldIdentifier()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_IsValid()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_ClassToRender()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.BuildRenderTree(RenderTreeBuilder __builder)
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
u @ blazor.webassembly.js:1
Ke._internal.dotNetCriticalError @ blazor.webassembly.js:1
_bound_js_Blazor__internal_dotNetCriticalError @ _bound_js_Blazor__internal_dotNetCriticalError:7
Ss @ dotnet.7.0.5.rfrjyre5do.js:5
_mono_wasm_invoke_bound_function @ dotnet.7.0.5.rfrjyre5do.js:14
$func313 @ 00992dae:0x1d43c
$func283 @ 00992dae:0x1c935
$func221 @ 00992dae:0xe025
$func220 @ 00992dae:0xce95
$func8115 @ 00992dae:0x1a21ff
$func2054 @ 00992dae:0x85c24
$func2052 @ 00992dae:0x85b9a
$func1395 @ 00992dae:0x686eb
$func313 @ 00992dae:0x1d4c0
$func283 @ 00992dae:0x1c935
$func221 @ 00992dae:0xe025
$func220 @ 00992dae:0xce95
$func8115 @ 00992dae:0x1a21ff
$func2054 @ 00992dae:0x85c24
$func2059 @ 00992dae:0x8628c
$func2086 @ 00992dae:0x8834b
$mono_wasm_invoke_method_ref @ 00992dae:0x9bd1
Module._mono_wasm_invoke_method_ref @ dotnet.7.0.5.rfrjyre5do.js:14
_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet @ _Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_BeginInvokeDotNet:29
beginInvokeDotNetFromJS @ blazor.webassembly.js:1
b @ blazor.webassembly.js:1
invokeMethodAsync @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
invokeWhenHeapUnlocked @ blazor.webassembly.js:1
S @ blazor.webassembly.js:1
A @ blazor.webassembly.js:1
dispatchGlobalEventToAllElements @ blazor.webassembly.js:1
onGlobalEvent @ blazor.webassembly.js:1
2blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Value cannot be null. (Parameter 'property')
System.ArgumentNullException: Value cannot be null. (Parameter 'property')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.Linq.Expressions.Expression.Property(Expression expression, PropertyInfo property)
   at Telerik.Blazor.Extensions.ReflectionExtensions.GetNestedExpression[Object](Object item, String field)
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_ValueExpression()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_FieldIdentifier()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_IsValid()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.get_ClassToRender()
   at Telerik.Blazor.Components.TelerikFormItemRenderer.BuildRenderTree(RenderTreeBuilder __builder)
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)
u

Was the fix supposed to be in 4.2.0? 
If not, do you know when we could expect the fix?