Hello,
I created an edit-pop up template for a grid and when I try to edit the entry, the pop up works great. But the template is not loading when I click to add a new entry.
e.g.
I created an edit-pop up template for a grid and when I try to edit the entry, the pop up works great. But the template is not loading when I click to add a new entry.
e.g.
Html.Kendo().Grid<
Areas.TestArea.Models.RoleBasicFunctions
>()
.Name("RoleBasicFunctions")
.Columns(columns =>
{
columns.Bound(p => p.RoleBasicFunctionsID).Title("ID").Visible(false);
columns.Bound(p => p.EntityBasicInformation.EntityType.EntityTypeName).Title("Entity Name").HeaderHtmlAttributes(new { style = "white-space: normal" });
columns.Bound(p => p.EntityBasicInformation.Name).Title("Name").HeaderHtmlAttributes(new { style = "white-space: normal" });
columns.Command(command => { command.Edit().Text(" "); }).Width(80);
})
.Pageable()
.Sortable()
.Scrollable()
.Editable(editable => editable.Mode(GridEditMode.PopUp).DisplayDeleteConfirmation(false).TemplateName("EditRoleBasicFunctions").Window(ww => ww.Title("Edit").Width(1800)))
.ToolBar(toolbar => toolbar.Create())
.Filterable()
.DataSource(dataSource => dataSource.Ajax()
.Model(model =>
{
model.Id(p => p.RoleBasicFunctionsID);
})
.Read(read => read.Action("RoleBasicFunctionsGrid_Read", "Test").Data("additionalData")))