I've got a menu bound to a model but I can't seem to set the LinkHtmlAttributes.
It looks like this:
@(Html.Kendo().Menu()
.Name("menu")
.BindTo(Model, mappings =>
{
mappings.For<MenuModel>(binding => binding
.ItemDataBound((items, menu) =>
{
items.Text = menu.Text;
//I want to set the link attributes, but this isn't working
items.LinkHtmlAttributes = new { foo = "bar" };
})
)
It looks like this:
@(Html.Kendo().Menu()
.Name("menu")
.BindTo(Model, mappings =>
{
mappings.For<MenuModel>(binding => binding
.ItemDataBound((items, menu) =>
{
items.Text = menu.Text;
//I want to set the link attributes, but this isn't working
items.LinkHtmlAttributes = new { foo = "bar" };
})
)