This is what I have. why is DetailTemplate saying "Cannot use only server templates in Ajax or WebService binding mode. Please specify a client template as well." I am only using one datasource.
@(Html.Kendo().Grid(Model.ProcessHistoryItems)
.Resizable(resize=>resize.Columns(true))
.Groupable(group=>group.Enabled(true))
.Name("GridHistory").Navigatable()
.Columns(columns =>
{
columns.Bound(item => item.ProcessorCode).Width(200);
columns.Bound(item => item.CreatedBy).Width(150);
columns.Bound(item => item.StartDate).Width(150);
columns.Bound(item => item.EndDate).Width(150);
columns.Bound(item => item.Parameters).Width(375);
columns.Bound(item => item.Exception).Width(100);
columns.Bound(item => item.Status).Width(100);
}
).Pageable(pager => pager
.Input(true)
.Numeric(true)
.Info(true)
.PreviousNext(true)
.Refresh(true)
.PageSizes(true)
).DetailTemplate(detail=> @Html.Kendo().Grid(detail.ChildProcesses)
.Name("DetailHistory")
.Columns(columns =>
{
columns.Bound(item => item.ProcessorCode).Width(250);
columns.Bound(item => item.CreatedBy).Width(100);
columns.Bound(item => item.StartDate).Format("{0:MM/dd/yyyy hh:mm:ss}").Width(200);
columns.Bound(item => item.EndDate).Width(200);
columns.Bound(item => item.Parameters).Width(200);
columns.Bound(item => item.Exception).Width(100);
columns.Bound(item => item.Status).Width(100);
})
.Resizable(resize=>resize.Columns(true)).Scrollable().Sortable(sort=>sort.Enabled(true)).Filterable(filter=>filter.Enabled(true))
).DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Refresh", "ProcessServer"))
.Model(m=>m.Id(p=>p.ProcessorCode)))
)
@(Html.Kendo().Grid(Model.ProcessHistoryItems)
.Resizable(resize=>resize.Columns(true))
.Groupable(group=>group.Enabled(true))
.Name("GridHistory").Navigatable()
.Columns(columns =>
{
columns.Bound(item => item.ProcessorCode).Width(200);
columns.Bound(item => item.CreatedBy).Width(150);
columns.Bound(item => item.StartDate).Width(150);
columns.Bound(item => item.EndDate).Width(150);
columns.Bound(item => item.Parameters).Width(375);
columns.Bound(item => item.Exception).Width(100);
columns.Bound(item => item.Status).Width(100);
}
).Pageable(pager => pager
.Input(true)
.Numeric(true)
.Info(true)
.PreviousNext(true)
.Refresh(true)
.PageSizes(true)
).DetailTemplate(detail=> @Html.Kendo().Grid(detail.ChildProcesses)
.Name("DetailHistory")
.Columns(columns =>
{
columns.Bound(item => item.ProcessorCode).Width(250);
columns.Bound(item => item.CreatedBy).Width(100);
columns.Bound(item => item.StartDate).Format("{0:MM/dd/yyyy hh:mm:ss}").Width(200);
columns.Bound(item => item.EndDate).Width(200);
columns.Bound(item => item.Parameters).Width(200);
columns.Bound(item => item.Exception).Width(100);
columns.Bound(item => item.Status).Width(100);
})
.Resizable(resize=>resize.Columns(true)).Scrollable().Sortable(sort=>sort.Enabled(true)).Filterable(filter=>filter.Enabled(true))
).DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Refresh", "ProcessServer"))
.Model(m=>m.Id(p=>p.ProcessorCode)))
)