I am trying to get events to fire on a popup window used for the editor on a grid. My code is below. When I review the generated script, the .Window does not get configured with "Open" or "Activate". Can anyone tell me what I need to do to get these events to fire?
@(Html.Kendo().Grid<
FooRecord
>()
.Name("cFooGrid")
.Columns(c =>
{
c.Bound(f => f.Foo);
c.Bound(f => f.Bar);
c.Bound(f => f.Bas);
c.Command(a => a.Edit());
})
.Editable(e => e
.Mode(GridEditMode.PopUp)
.Window(w => w.Events(v => v.Open("OnEditStart").Activate(@<
text
>function () {console.log("EditWindow.Activate")}</
text
>)))
)
.ToolBar(t =>
{
t.Create();
})
.DataSource(ds => ds
.Ajax()
.Create(r => r.Action("UpdateIndex", "Home"))
.Read(r => r.Action("IndexList", "Home"))
.Update(u => u.Action("UpdateIndex", "Home"))
.Model( m => {
m.Id(f => f.Foo);
})
)
)