I am having trouble with formatting a column that is bound to a nullable datetime field. The grid is bound on the client side using ajax. Wondering if anyone has seen this behavior before, and if so, what the solution was.
Here is the part of the grid instantiation code that formats the nullable datetime field:
The LastCheckOutDate field is of type nullable datetime.
The page has a javascript error like this:
It seems that Telerik grid does not know how to render a nullable datetime field. Would appreciate any help or ideas relating to the above problem.
Thank you
Here is the part of the grid instantiation code that formats the nullable datetime field:
columns.Bound(c => c.MediaFileVersion.MediaFile.LastCheckOutDate).ClientTemplate("<#= $.telerik.formatString('{0:MM/dd/yyyy - hh:mm tt}', GetDateFrom(LastCheckOutDate)) #>").Title("Check-out Date");
The LastCheckOutDate field is of type nullable datetime.
The page has a javascript error like this:
Uncaught ReferenceError: LastCheckOutDate is not defined
It seems that Telerik grid does not know how to render a nullable datetime field. Would appreciate any help or ideas relating to the above problem.
Thank you