DisplayFormat(DataFormatString) not working for properties of navigation properties

0 Answers 3 Views
Grid
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Stefan asked on 14 May 2025, 06:37 AM

Hi,

wie have a Model A which is related to Model B (1:n). Both have a field of type DateTime with the DisplayFormat-Annotation '[DisplayFormat(DataFormatString = "{0:d}")]'.

If we display both fields in the Details-View of Model A, the formats are applied correctly.

If we display bot fields in a Telerik-GridView, only the format for Model A is applied. Model B shows something like '/Date(1741302000000)/'.

It's important to note, that our application is multilanguage, and we have to support different data formats for each language.

 

How would we go about this? Is this known behaviour?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or