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

Data annotation display format

Thread ID:

Created:

Updated:

Platform:

Replies:

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

When I was using syncfusion ver.14.2.0.32,
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}")]
        [ResourceDisplayName("FileUpload.UploadDate")]
        public DateTime UploadDate { get; set; }


But after I upgraded syncfusion from ver.14.2.0.32 to 14.4.0.15,
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 14.4.0.15. 

 

 


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. 

Regards, 
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. 

Regards, 
Manisankar Durai. 


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.

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

;