Exception on Grid Cancel Edit Dialog

Hello,

For version 20.2.0.49 I get an exception when clicking Cancel after Add action in grid toolbar. This only happens if there is no selected row in grid when clicking Add. It seems that the problem was introduced since version 20.2.0.44. I tested with 20.2.0.43 and there is no problem.


[2022-09-14T23:20:47.5705450-06:00][WARN][31][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.CloseEdit(Boolean escapeKey)

   at Syncfusion.Blazor.Grids.Internal.DialogEdit`1.<BuildRenderTree>b__0_12()

   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)

[2022-09-14T23:20:47.5855490-06:00][EROR][31][Microsoft.AspNetCore.Components.Server.Circuits.CircuitHost] Unhandled exception in circuit '"1PA0cDyp42Wjm7nmXUdsCj02pp0A0BjavRPAKNCPmS8"'.

System.NullReferenceException: Object reference not set to an instance of an object.

   at Syncfusion.Blazor.Grids.Internal.Edit`1.CloseEdit(Boolean escapeKey)

   at Syncfusion.Blazor.Grids.Internal.DialogEdit`1.<BuildRenderTree>b__0_12()

   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)

[2022-09-14T23:20:47.6004640-06:00][INFO][31][Microsoft.AspNetCore.Routing.EndpointMiddleware] Executed endpoint '"/_blazor"'

[2022-09-14T23:20:47.6009650-06:00][INFO][31][Serilog.AspNetCore.RequestLoggingMiddleware] HTTP "GET" "/_blazor" responded 101 in 5296.7670 ms

[2022-09-14T23:20:47.6011600-06:00][INFO][31][Microsoft.AspNetCore.Hosting.Diagnostics] Request finished HTTP/1.1 GET https://localhost:7193/_blazor?id=AfgC4k74GFsF52bPUfxQYA - - - 101 - - 5297.2407ms


Regards,

Erick




7 Replies

NP Naveen Palanivel Syncfusion Team September 16, 2022 03:59 AM UTC

Hi Eric,


Greetings from Syncfusion support.


We have confirmed this as an issue and logged the defect report “Exception throws when clicking cancel in Add form” for the same. Thank you for taking time to report this issue and helping us to improve our product. At Syncfusion, we are committed to fix all validated defects (subject to technological feasibility and Product Development Life Cycle) and this fix will be included in our upcoming patch release which is expected to be rolled out on or before 21st   September, 2022.


You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link.       


https://www.syncfusion.com/feedback/37296/exception-throws-when-clicking-cancel-icon-in-add-form


Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization”


Until then we appreciate your patience.


Regards,

Naveen Palanivel



NP Naveen Palanivel Syncfusion Team September 26, 2022 06:42 PM UTC

Hi Eric,


Sorry for the Inconvenience.


We are facing difficulties in fix, so we are not able to include the reported Exception throws when clicking cancel in Add form” in our mentioned patch release as promised. We have planned to include this in our upcoming Volume 3 release .

Till then we appreciate your patience.    

Regards

Naveen Palanivel



ER Erick September 26, 2022 09:08 PM UTC

Cool. No problem. Thank you very much for the follow up.


Erick



NP Naveen Palanivel Syncfusion Team September 28, 2022 12:09 AM UTC

Hi Erick,


welcome.


we will update once the release is rolled out



Regards,

Naveen Palanivel



NP Naveen Palanivel Syncfusion Team October 2, 2022 01:39 PM UTC

Hi Erick,


Thanks for the patience.


We are glad to announce that we have included fix for the issue Exception throws when clicking cancel in Add form in our volume release (20.3.0.47).  So please upgrade to our latest version of Syncfusion NuGet package to resolve the reported issue. Please find the Nuget package for latest fixes and features from below.


Nuget : https://www.nuget.org/packages/Syncfusion.Blazor.Grid


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you need any further assistance. 

   

Regards,            

Naveen Palanivel



AA Anurag Asati December 21, 2022 01:07 PM UTC

Hi Naveen, 


I am still facing the above mentioned issue after updating to  (20.3.0.47) and also to  (20.3.0.61).

I have also raised a separate support ticket #426303 explaining in detail.



NP Naveen Palanivel Syncfusion Team December 26, 2022 07:34 AM UTC


Anurag,


From your query, we want to convey that we have already discussed and updated the query in the ticket you have mentioned, Please follow the ticket for further assistance


Regards,

Naveen Palanivel


Loader.
Up arrow icon