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

Handling datasource errors

Thread ID:

Created:

Updated:

Platform:

Replies:

150201 Dec 26,2019 05:48 AM UTC Dec 30,2019 01:23 PM UTC Blazor 1
loading
Tags: Grid
Anthony
Asked On December 26, 2019 05:48 AM UTC

Is their a best practice to manage datasource errors in the datagrid?  When i load a datasource that has unexpected field data, the whole grid fails to load.  How can i handle this through best practice.

System.FormatException: Input string was not in a correct format.

Vignesh Natarajan [Syncfusion]
Replied On December 30, 2019 01:23 PM UTC

Hi Anthony,  

Greetings from Syncfusion support.  

Query: “Is their a best practice to manage datasource errors in the datagrid? 

You can use OnActionFailure event to find and manage the cause of the issue caused during certain actions in Grid. Refer the below UG documentation for your reference 


The reported issue “input string was not in correct format” might be caused when data is returned in wrong format from server while using Data Adaptor of EjsDataManager. For eg- WebAPI adaptor, data must be retuned in form of Items and Count. If you do not return the value in that format, reported issue might occur. Kindly refer the below UG documentation.  


If you are still facing the issue, kindly get  back to us with more details about your issue like your adaptor type, dataSource return values. etc   

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