We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DashboardLayout error : Newtonsoft.Json.JsonSerializationException in browser console

Hi,

I've tried to replicate this example here: https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorApp132410259.zip , using the newest Blazor v17.4.39, to be able to add a panel dynamically, but I get multiple errors in the browser console like this:

ejs.interop.min.js:1 Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'System.Collections.Generic.List`1[Syncfusion.EJ2.Blazor.Layouts.DashboardLayoutPanel]' because the type requires a JSON array (e.g. [1,2,3]) to deserialize correctly. To fix this error either change the JSON to a JSON array (e.g. [1,2,3]) or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.

I have attached the source code, please run and look at browser console output after clicking on the Add Panel button. Even though the panel is dynamically added in the UI, you still get the unexpected errors in the browser console...plz assist since I want to use this object in an upcoming project?

Regards,

RC




Attachment: BlazorApp_AddPanel_5463e79a.zip

6 Replies

SP Sowmiya Padmanaban Syncfusion Team December 23, 2019 12:58 PM UTC

Hi Ruan, 
 
Greetings from Syncfusion support. 
 
We have checked your reported issue and able to reproduce the issue from our end. We will consider this as bug from our end. This bug fix will be included in our weekly release which is expected to be released at the second week of January. Track the below link for bug status. 
 
 
Please let us know, if you have any concerns. 
 
Regards, 
Sowmiya.P 



RU Ruan January 9, 2020 05:37 AM UTC

Hi,

This bug fix has not been included in newly released Blazor version 17.4.42...please advise on when this fix will be implemented? 

Thanks,

RC


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 9, 2020 07:08 AM UTC

Hi Raun, 
  
Sorry for the inconvenience. 
  
We have not included the fix for the reported issue in our last weekly release, as we need to confirm the fix with all possible functionalities in the component. As promised in our previous update, we will include the fix in our January second weekly release which is expected to be rolled out by next week. 
  
We appreciate your patience till then. 
  
Regards, 
Shameer Ali Baig S. 



SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 20, 2020 08:42 AM UTC

Hi Raun, 
 
Thanks for the patience. 
 
We are happy to announce that our patch release (v17.4.43) is rolled out successfully. In this release, we have included a fix for “AddPanel method script error in dashboard layout”. To access this fix, we suggest you update the NuGet package (Syncfusion.EJ2.Blazor) to the latest version (v.17.4.43).  
 
Refer the below sample link for your reference. 
 
  
Please let us know, if you need any further assistance. 
 
Regards, 
Shameer Ali Baig S. 



RU Ruan January 20, 2020 08:39 PM UTC

Thanks, it is working as expected...


SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 21, 2020 05:54 AM UTC

Hi Raun, 
  
We are pleased to hear that your problem is resolved. Please, get back to us if you need further assistance. 
  
Regards, 
Shameer Ali Baig S. 


Loader.
Live Chat Icon For mobile
Up arrow icon