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

DateTimeOffset causes exception Unexpected character encountered while parsing value: 8. Path '', line 1, position 1.

Thread ID:

Created:

Updated:

Platform:

Replies:

146667 Aug 13,2019 11:28 AM UTC Aug 22,2019 09:30 AM UTC Blazor 2
loading
Tags: Grid
Mike
Asked On August 13, 2019 11:28 AM UTC

When binding a grid to a list of objects that contain a datetimeoffset, there is a newtonsoft exception thrown. Changing it to a DateTime fixes it but we can't always change the source objects and creating a wrapper layer is kinda time-consuming. Is this a bug or should I be doing something before using objects with offsets?

Vignesh Natarajan [Syncfusion]
Replied On August 14, 2019 10:24 AM UTC

Hi Mike,  

Greetings from Syncfusion support.  

Query: “When binding a grid to a list of objects that contain a datetimeoffset, there is a newtonsoft exception thrown 
 
We are able to reproduce the reported issue at our end while using Template Columns. Since it is a known issue, we have logged a defect “Script error is thrown with DateTimeOffset property in Grid”. We have fixed the reported issue and fix for the issue will be included in our upcoming Nuget release which is expected to be rolled out on or before 19th August 2019.  

You can track the status of the issue and contact us through the below feedback link 


We appreciate your patience. 

Regards, 
Vignesh Natarajan.

Vignesh Natarajan [Syncfusion]
Replied On August 22, 2019 09:30 AM UTC

Hi Mike,  

We are glad to inform that our latest Nuget package (17.2.0.46) has been successfully rolled out. Please find the latest Nuget package from below   


In this release we have updated our components to .NET Core 3.0 Preview 8. Please find the release notes regarding the changes we have done in our component.   


Note: There is a break in the @ref functionality in Blazor with Preview 8. If you are accessing our component instance in code behind using @ref, you need to define both @ref and @ref:suppressField in all component’s tag-helper as shown in the below code snippet. Please refer to this GitHub thread for more information. 
  
 <EjsGrid @ref="@DefaultGrid" @ref:suppressField > </EjsGrid> 

In this release we have included fix for the issue “Script error is thrown with DateTimeOffset property in Grid”. For your convenience we have prepared a sample in our latest Nuget release which can be downloaded from below  
 
 
Please get back to us if you have any queries.  

Regards, 
Vignesh Natarajan. 


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