I have a simple grid with a custom popup template for the editor. The Edit button pops the template and works great. However, the Create command on the toolbar is not responding at all. I get no errors and my custom popup template does not show.
Any help would be very much appreciated.
Thanks … Ed
@(Html.Kendo().Grid<
IndexModel.CertificateModel
>()
.Name("grid")
.ToolBar(t =>
{
t.Create().Text("Add New");
})
.HtmlAttributes(new { style = "height: 850px;" })
.Editable(e => e.Mode(GridEditMode.PopUp).TemplateName("CertificateEditTemplate")
.Window(w => w.Title("Certificate").Width(650)))
.Events(evt => { evt.Edit("OnEdit"); })
.Columns(columns =>
{
columns.Bound(c => c.CertId).Width(100).Visible(false);
columns.Bound(c => c.Crop.CropName).Width(150);
columns.Command(c => c.Edit().Text("Edit"));
})
.DataSource(ds =>
ds.Ajax()
.Batch(true)
.ServerOperation(false)
.Read(r => r.Url("?handler=CertsRead").Data("forgeryToken"))
.Update(u => u.Url("?handler=CertsUpdate").Data("forgeryToken"))
.Create(c => c.Url("?handler=CertsCreate").Data("forgeryToken"))
.Model(m =>
{
m.Id(c => c.CertId);
})
.PageSize(20)
)
)