I have a asp.net mvc kendo grid with Edit option in each row, on click it brings the data from Editor Template(its having a kendo dropdown in it) I have implemented CSP globally. Grid having Deferred() in it. Grid works fine with its basic get records.
After CSP . Edit click is not opening the popup. Shows console error with invalid template.
followed by the entire page html code.
How to eliminate this. How to use Edit with CSP.
Grid Example:
@(Html.Kendo().Grid((IEnumerable<test>)Model).Name("test")
.DataSource(datasource => datasource.Ajax().Read(read => read.Action("GetRecords", "Test").Type(HttpVerbs.Get)))
.Columns(columns =>
{
columns.Command(command => { command.Edit().Text("Edit"); }).Width(75);
columns.Bound(p => p.Id).Title("ID").Width(130);
columns.Bound(p => p.Name).Title("Name").Width(130);
columns.Bound(p => p.Date).Title("Date").Width(150);
})
.Editable(editable =>
{
editable.Mode(GridEditMode.PopUp).TemplateName("Edit_Details");
})
.Pageable()
.Sortable()
.Scrollable()
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(p => p.Id);
})
.Update(update => update.Action("EditDetails", "Test").Type(HttpVerbs.Post))
)
.Deferred()
)
Thanks,
Anupriya. R