Error when no record

  1. When I open the page it loads/unhandled
  2. Screenshot (596).png

11 Replies

BC Belle Cruz February 25, 2022 03:58 PM UTC

blazor.server.js:21 [2022-02-26T02:57:57.169Z] Error: System.InvalidOperationException: This operation is only valid on generic types.

   at System.RuntimeType.GetGenericTypeDefinition()

   at Syncfusion.Blazor.Grids.SfGrid`1.IsObservableCollection(Object data)

   at Syncfusion.Blazor.Grids.SfGrid`1.DataProcess(ActionArgs action, ActionEventArgs`1 actionArgs)

   at Syncfusion.Blazor.Grids.SfGrid`1.DataProcess(ActionArgs action, ActionEventArgs`1 actionArgs)

   at Syncfusion.Blazor.Grids.SfGrid`1.UpdateForeignData()

   at Syncfusion.Blazor.Grids.GridForeignColumn`1.OnAfterRenderAsync(Boolean firstRender)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)


this is the error



BC Belle Cruz February 25, 2022 04:00 PM UTC

Here is my razor code


Attachment: PSHeaderList_f9a071b9.rar


BC Belle Cruz February 25, 2022 04:00 PM UTC

And this is the base


Attachment: PSHeaderListBase_c64e9b5.rar


BC Belle Cruz February 28, 2022 11:23 AM UTC

Is there any update about my query?



RN Rahul Narayanasamy Syncfusion Team February 28, 2022 12:18 PM UTC

Hi Belle, 
 
Greetings from Syncfusion. 
 
We have checked your shared details and could you please ensure the reported problem after upgrading to latest version(19.4.0.53) from your end since we have already included a fix for similar issue in old version. 
 
Also, we need some details regarding the reported problem. Could you please share the below details which will be helpful to validate and provide a better solution. 
 
  • Syncfusion NuGet version details.
  • Did you reproduce the problem in latest Syncfusion Blazor NuGet version also?
  • Whether the problem occurs at initial rendering itself or after performing any operation.
  • Could you please remove all the GridForeignColumn and ensure the reported problem from your end?
  • Video demonstration of the problem.
  • Share a simple reproduceable sample if possible.
 
Regards, 
Rahul 



BC Belle Cruz March 1, 2022 07:12 AM UTC

When I open the payment to suppliers the error occured


Attachment: video1646099834_eec29fd3.rar


RN Rahul Narayanasamy Syncfusion Team March 2, 2022 03:23 PM UTC

Hi Belle, 

Thanks for the update. 

We are currently preparing a sample based on your shared details for checking the reported problem. We will update the further details within two business days. Until then we appreciate your patience. 

Also, we have checked your shared stack trace details. We suspect that the reported problem occurs from the GridForeignColumn DataSource or the model class of that GridForeignColumn. So we need some details regarding the GridForeignColumn. Could you please share the below details which will be helpful to validate this further. 

  • Share GridForeignColumn datasource details.
  • Model class details for all the Foreign Key columns and Grid datasource.
  • Details about the how you returning the GridForeignColumn datasource and format of the returned foreign column datasoruce.
  • Whether did you bound any GridForeignColumn datasource as empty or null?
  • Syncfusion Blazor NuGet version details.
  • Could you please remove all the GridForeignColumn and ensure the reported problem from your end?

Regards, 
Rahul 
 



BC Belle Cruz March 3, 2022 10:42 AM UTC

Here is the Model.cs


Attachment: PSHeader_8e6604f0.rar


BC Belle Cruz March 3, 2022 10:45 AM UTC

EditBase.razor


Attachment: PSEditBase_fa74b04b.rar


BC Belle Cruz March 3, 2022 10:45 AM UTC

Edit.razor


Attachment: PSEdit_a5efc11.rar


RN Rahul Narayanasamy Syncfusion Team March 7, 2022 04:11 AM UTC

Hi Belle, 
 
Thanks for the update. 

Based on your shared details we have created a simple sample and checked the reported problem from our end. We could not able to reproduce the reported problem. Find the below sample for your reference. 


If you are still facing the problem, then could you please share the below details which will be helpful to validate and provide a better solution. 

  • Reproduce the reported problem in the provided sample and revert back to us /Share a simple reproduceable sample if possible.
  • Syncfusion NuGet version details.
  • Could you please remove all the GridForeignColumn and ensure the reported problem from your end?

Regards, 
Rahul 


Loader.
Up arrow icon