Hi,
I have a ejMenu and i need to get the id, text, url..etc when click on a menu item. But it gives only text of it. If i try to get the id of clicked menu item it gives 'undefined' error. Please help me on this matter.
@Html.EJ().Menu("menu").MenuFields(f => f.Datasource((IEnumerable<KalbizCat_OLE.Controllers.HomeController.MenuJson>)ViewBag.datasource)
.Id("id").Text("text").ParentId("parent").Url("URL")).ClientSideEvents(eve => { eve.Click("clientMenuClick"); })
function clientMenuClick(event)
{
alert(event.id);
}
Thank you and regard
Kalum