Error in ApplyFormValidation

I have catched the same error twice in my application.

In one grid this error fires when I turn on the edit mode. In another when I save edited row only.


This is from grid turning on edit:

blazor.server.js:21 [2021-07-29T19:06:27.434Z] Error: System.ArgumentNullException: Value cannot be null. (Parameter 'source')

   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)

   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)

   at Syncfusion.Blazor.Grids.Internal.Edit`1.isEditable(GridColumn Column)

   at Syncfusion.Blazor.Grids.Internal.EditorCellBase`1.get_Enabled()

   at Syncfusion.Blazor.Grids.Internal.BooleanEditCell`1.BuildRenderTree(RenderTreeBuilder __builder)

   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()



This is from grid saving edited data:

blazor.server.js:21 [2021-07-29T18:49:15.394Z] Error: System.ArgumentNullException: Value cannot be null. (Parameter 'source')

   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)

   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)

   at Syncfusion.Blazor.Grids.Internal.Edit`1.isEditable(GridColumn Column)

   at Syncfusion.Blazor.Grids.Internal.Edit`1.ApplyFormValidation(ValidationResult result)

   at Syncfusion.Blazor.Grids.Internal.NormalEdit`1.<BuildRenderTree>b__0_3(ValidationResult args)

   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__140_0(Object state)

   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteSynchronously(TaskCompletionSource`1 completion, SendOrPostCallback d, Object state)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

--- End of stack trace from previous location ---

   at Microsoft.AspNetCore.Components.Rendering.RendererSynchronizationContext.ExecuteBackground(WorkItem item)

e.log @ blazor.server.js:21

I @ blazor.server.js:10

(anonymous) @ blazor.server.js:10

(anonymous) @ blazor.server.js:1

e.invokeClientMethod @ blazor.server.js:1

e.processIncomingData @ blazor.server.js:1

connection.onreceive @ blazor.server.js:1

i.onmessage @ blazor.server.js:1

blazor.server.js:1 [2021-07-29T18:49:15.395Z] Information: Connection disconnected.


What could be the reason? I tried to remove some c


2 Replies

JP Jeevakanth Palaniappan Syncfusion Team July 30, 2021 11:11 AM UTC

Hi Stanislav, 

Greetings from Syncfusion support. 

We have analyzed the reported issue and we are able to reproduce the reported issue at our end. We have confirmed the reported query as a bug and logged the defect report “Exception occur while saving the record in Grid when any one column is defined Visible false for the same. Thank you for taking the time to report this issue and helping us improve our product. Fix for the defect will be included in our weekly release which is expected to be rolled out by the first week of August 2021.  
          
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.  
 
   
Till then we appreciate your patience.   
 
Regards, 
Jeevakanth SP. 



RN Rahul Narayanasamy Syncfusion Team August 4, 2021 12:49 PM UTC

Hi Stanislav, 

We are glad to announce that our weekly patch release (19.2.0.51) has been rolled out successfully and in this release, we have included fix for the reported issue “Exception occur while saving the changes in Grid when any one column is defined Visible false”. So kindly update your NuGet (Syncfusion.Blazor) to our latest version to achieve your requirement. 

Please find the Nuget package and release notes from below 

Nuget:  
Release Notes:  
Feedback –  

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

Regards, 
Rahul 


Loader.
Up arrow icon