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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DashboardLayout error : Newtonsoft.Json.JsonSerializationException in browser console

Thread ID:

Created:

Updated:

Platform:

Replies:

150144 Dec 23,2019 01:50 AM UTC Jan 21,2020 05:54 AM UTC Blazor 6
loading
Tags: Dashboard Layout
Ruan
Asked On December 23, 2019 01:50 AM UTC

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

Sowmiya Padmanaban [Syncfusion]
Replied On 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 


Ruan
Replied On 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

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On 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. 


Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On 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. 


Ruan
Replied On January 20, 2020 08:39 PM UTC

Thanks, it is working as expected...

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On 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. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon