This question is locked. New answers and comments are not allowed.
Hi,
I would like to set the LinkHtmlAttribue value for a menu item (to open in a new window) but this does not appear to be possible when Databinding.
@(Html.Telerik().Menu().Name("MachineDetailsMenu").BindTo(Model.AvailableCommands, mappings => { mappings.For<MenuViewModel>(binding => binding.ItemDataBound((item, menuViewModel) =>{ item.Text = menuViewModel.Text; item.Enabled = menuViewModel.Enabled; item.LinkHtmlAttributes = menuViewModel.HtmlAttributes; if(!String.IsNullOrEmpty(menuViewModel.ControllerName)) { item.ControllerName = menuViewModel.ControllerName; item.ActionName = menuViewModel.ActionName; item.RouteValues = menuViewModel.RouteValues; } }).Children(child => child.Children)); }))Causes an exception (Delegate does not take 1 action). It would appear the LinkHtmlAttributes has a private setter so cannot be accessed?
Any advice would be great.
Cheers
Dave