This is probably something very silly and simple, but all of my dates ignore the format property and show up as "/Date(1293868800000)/"
This is a .NET project connecting to a web service. All other columns show up fine.
Some sample code:
and the web service is as follows:
This is a .NET project connecting to a web service. All other columns show up fine.
Some sample code:
$(
"#grid"
).kendoGrid({
columns: [
{ title:
"Action"
, command:
"destroy"
},
{ field:
"TaskName"
, title:
"Task Name"
},
{ field:
"UserList"
, title:
"Assigned to"
},
{ field:
"GroupName"
, title:
"Group"
},
{ field:
"StatusName"
, title:
"Status"
},
{ field:
"DueDate"
, title:
"Due Date"
, format:
"{0:dd/MMMM/yyyy}"
},
{ field:
"CompletedDate"
, title:
"Completed Date"
, format:
"{0:dd/MMMM/yyyy}"
},
{ field:
"Notes"
}
],
and the web service is as follows:
<WebMethod()> _
Public
Function
Read()
As
List(Of TaskViewmodel)
Using Context
As
New
TFE.TFEEntities
Try
Return
Context.JobTasks.
Select
(
Function
(task)
New
TaskViewmodel
With
{.TaskID = task.JobTaskID, .TaskName = task.TaskName, .UserList =
"Comming Soon..."
, .GroupID = task.GroupID, .GroupName = task.Group.Name, .StatusID = task.StatusID, .StatusName = task.JobTaskStatus.Name, .DueDate = task.DueDate, .CompletedDate = task.CompletedDate, .Notes = task.Notes}).ToList()
Catch
ex
As
Exception
Throw
ex
End
Try
End
Using
End
Function