I've problems to format the (nullable) DateTime within a grid cell.
It shows me "/Date(1346849354810)/" instead the formatted date:
My Binding
The second problem is, if I check of HasValue i get an undefined:
if i use GetValueOrDefault() I get an error: "Bound columns require a field or property access expression."
It shows me "/Date(1346849354810)/" instead the formatted date:
My Binding
columns.Bound(p => p.Incentiv.CreatedDate).Format("{0:d}")
.ClientTemplate("#= (Incentiv.CreatedDate==null ? '':Incentiv.CreatedDate) #");
The second problem is, if I check of HasValue i get an undefined:
columns.Bound(p => p.Incentiv.CreatedDate).Format("{0:d}")
.ClientTemplate("#= (Incentiv.CreatedDate.HasValue ? '':Incentiv.CreatedDate.Value) #");
if i use GetValueOrDefault() I get an error: "Bound columns require a field or property access expression."
columns.Bound(p => p.Incentiv.CreatedDate.GetValueOrDefault()).Format("{0:d}")
.ClientTemplate("#= (Incentiv.CreatedDate == null ? '':Incentiv.CreatedDate) #");