Welcome to the Blazor feedback portal. We’re happy you’re here! If you have feedback on how to improve the Blazor, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Hi,
I haven't updated in a long time Syncfusion NuGet. After upgrade to latest version, I got NullReferenceException when click to edit button in command column. If I double click to row or click to edit button in toolbar, everything works fine.
Application details
Code snippet
<GridColumn Width="150" TextAlign="TextAlign.Center"> <GridCommandColumns> <GridCommandColumn Type="CommandButtonType.Edit" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-edit", CssClass="e-flat" })"></GridCommandColumn> <GridCommandColumn Type="CommandButtonType.Delete" ButtonOption="@(new CommandButtonOptions() {IconCss="e-icons e-delete", CssClass="e-flat" })"></GridCommandColumn> </GridCommandColumns> </GridColumn>
Exception
[00:32:41 Warning] Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer
Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Syncfusion.Blazor.Grids.Internal.Edit`1.EditFormValidation()
at Syncfusion.Blazor.Grids.SfGrid`1.EndEdit()
at Syncfusion.Blazor.Grids.Internal.GridCellBase`1.CommandClickHandler(GridCommandColumn column)
at Syncfusion.Blazor.Grids.Internal.CommandColumn`1.<>c__DisplayClass0_0.<<BuildRenderTree>b__3>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Syncfusion.Blazor.Internal.SfBaseUtils.InvokeEvent[T](Object eventFn, T eventArgs)
at Syncfusion.Blazor.Buttons.SfButton.OnClickHandler(MouseEventArgs args)
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
Regards