Hello,
why does the following Kendo Menu in ClientTemplate not working?
the menu doesn't open on hover nor on click?
@(Html.GpdbKendoGridEdit<SELECT_Standort>(
"Standort"
,
"Standort_ID"
)
.Columns(columns =>
{
columns.Bound(c => c.Standort_ID).MinScreenWidth(768).Filterable(
false
).Sortable(
false
).IncludeInMenu(
false
).Width(60);
columns.Bound(c => c.Standort_ID).Title(
" "
)
.ClientTemplate(
Html.Kendo().Menu()
.Name(
"menu_#=Standort_ID#"
)
.OpenOnClick(
true
)
.Items(its =>
{
its.Add()
//.SpriteCssClasses("fa fa-tasks")
.Text(
""
).Items(nested =>
{
nested.Add().Text(
"test1"
);
nested.Add().Text(
"test2"
);
nested.Add().Text(
"test3"
);
nested.Add().Text(
"test4"
);
});
})
.ToClientTemplate().ToString()
)
.Filterable(
false
).Sortable(
false
).IncludeInMenu(
false
).Width(80);
columns.Bound(c => c.Strasse).ClientTemplate(
"#=getRowFormat(Strasse, gelöscht, true)##=(Art == true) ? ' <span class=\"label label-success pull-right\">ZS</span>' : '' ##=(Nichtbetriebe > 0) ? ' <span class=\"label label-danger pull-right\">R</span>' : '' #</br><small>#=getRowFormat(Postleitzahl.concat(' ', Ort), gelöscht, false)#</small>"
);
columns.Bound(c => c.Betriebsteil).MinScreenWidth(768).ClientTemplate(
"#=getRowFormat(Betriebsteil, gelöscht, false)#"
);
columns.Bound(c => c.gelöscht).MinScreenWidth(768).Format(
"{0:dd.MM.yyyy}"
).Width(110).ClientTemplate(
"#=getRowFormat(kendo.toString(gelöscht,'dd.MM.yyyy'), gelöscht)#"
);
})
.Editable(e => e.TemplateName(
"~/Areas/Mitglied/Views/Standorte/_frmStandortEdit.cshtml"
)
.Mode(GridEditMode.PopUp).Window(w => w.Title(
"Standort"
).Animation(animation => animation
.Open(open => open.SlideIn(SlideDirection.Left).Duration(500))
.Close(close => close.SlideIn(SlideDirection.Left).Duration(500).Reverse(
true
))
)
))
.DataSource(dataSource => dataSource
.Ajax()
.Model(model => model.Id(p => p.Standort_ID))
.Read(read => read.Action(
"Standorte_Read"
,
"Standorte"
))
.Update(read => read.Action(
"Standorte_Update"
,
"Standorte"
))
.Destroy(destroy => destroy.Action(
"Standorte_Destroy"
,
"Standorte"
))
)
.AutoBind(
false
)
.ClientDetailTemplateId(
"template"
)
)