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. Image for the cookie policy date

Data annotation display format

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?



3 Replies

MS Mani Sankar Durai Syncfusion Team 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 
 



EK Edwin Kurniawan 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


MS Mani Sankar Durai Syncfusion Team 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. 


Loader.
Up arrow icon