I have looked at similar postings but I am unable to figure it out. The json data is displaying as text, not through the view
CONTROLLER
VIEW
Example of displayed data
{"Data":[{"ActivityDate":"\/Date(1398866129000)\/","Action":"Call Placed","Assignment":9538,"Description":"Spoke with insured, Krsto Djurovski (Chris),
CONTROLLER
[HttpPost]
public
JsonResult ReportsPhoneSupport([DataSourceRequest] DataSourceRequest request, ReportsPhoneSupport model)
{
string
[] userIds = model.UserId.Split(
','
);
ReportPhoneSupportResultTypedView results =
new
ReportPhoneSupportResultTypedView();
foreach
(
string
userId
in
userIds)
{
int
iUserId = 0;
if
(Int32.TryParse(userId,
out
iUserId))
{
RetrievalProcedures.FetchReportPhoneSupportResultTypedView(results, model.FromDate, model.ToDate, iUserId);
}
}
var Results = from Reslt
in
results
select
new
{
ActivityDate = Reslt.ActivityDate,
Action = Reslt.Action,
Assignment = Reslt.Assignment,
Description = Reslt.Description,
Result = Reslt.Result,
ToFrom = Reslt.ToFrom
};
return
Json(Results.ToDataSourceResult(request, ModelState), JsonRequestBehavior.AllowGet);
}
@{
ViewBag.Title =
"ReportsPhoneSupport"
;
}
<h2>ReportsPhoneSupport</h2>
@(Html.Kendo().Grid<ZoomAudits.DAL.TypedViewClasses.ReportPhoneSupportResultRow>()
.Name(
"grid"
)
.Columns(columns =>
{
columns.Bound(m => m.ActivityDate).Format(
"{0:MM/dd/yyyy}"
).Title(
"Activity Date"
);
columns.Bound(m => m.Assignment).Title(
"Assignment"
);
columns.Bound(m => m.Action).Title(
"Action"
);
columns.Bound(m => m.ToFrom).Title(
"ToFrom"
);
columns.Bound(m => m.Result).Title(
"Result"
);
columns.Bound(m => m.Description).Title(
"Description"
);
})
//.AutoBind(true)
.Pageable()
.Sortable()
.Scrollable()
.Filterable()
.DataSource(dataBinding => dataBinding
.Ajax()
.ServerOperation(
false
)
.PageSize(20)
.Read(read => read.Action(
"ReportsPhoneSupport"
,
"ReportsPhoneSupport"
))
)
)
{"Data":[{"ActivityDate":"\/Date(1398866129000)\/","Action":"Call Placed","Assignment":9538,"Description":"Spoke with insured, Krsto Djurovski (Chris),