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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Data annotation display format

Thread ID:





127794 Dec 9,2016 07:39 AM UTC Dec 15,2016 11:59 AM UTC ASP.NET MVC 3
Tags: Grid
Edwin Kurniawan
Asked On December 9, 2016 07:39 AM UTC

When I was using syncfusion ver.,
datetime column data was nicely formatted even without the need to add format attribute
        eg: col.Field("UploadDate").HeaderText("Upload Date").AllowEditing(false).Width(85).Add();

format was read from Model data annotation, eg :
        [Required, DataType(DataType.DateTime)]
        [DisplayFormat(DataFormatString = "{0:dd MMM yyyy HH:mm:ss}")]
        public DateTime UploadDate { get; set; }

But after I upgraded syncfusion from ver. to,
All datetime column in my grid is losing its format which mean data annotattion DisplayFormat was ignored
(data displayed as default javascript datetime value, eg: Thu Dec 01 2016 00:00:00 GMT+0700 (SE Asia Standard Time))

Is there any changes/fix about this?

Mani Sankar Durai [Syncfusion]
Replied On December 13, 2016 12:35 PM UTC

Hi Edwin, 

Thanks for contacting Syncfusion support. 

We have analyzed your query and we are not able to reproduce the reported issue. Please refer the screenshot and the grid rendered in web page of about OrderDate column is formatted correctly while using Data Annotations in the version 



If you still face the issue please get back to us with the following details. 
1.       Share the full grid code that you have rendered. 
2.       Share the screenshot/video of the issue. 
3.       Is possible please share the issue reproducible sample or sample hosted link. 
The provided information will help us to analyze the issue and provide you the response as early as possible. 
Please get back to us if you need further assistance. 

Manisankar Durai 

Edwin Kurniawan
Replied On December 14, 2016 11:47 AM UTC

It appear that after i clean my browser cache & history, the date format are returning to normal (as expected).

Thx for your reply btw

Mani Sankar Durai [Syncfusion]
Replied On December 15, 2016 11:59 AM UTC

Hi Edwin, 

We are happy to hear that your problem has been solved. 

Please let us know if you need further assistance. 

Manisankar Durai. 


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

or the page will be automatically redirected to 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