We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

menu items as link

Hello ,
how to pass url for menu  item
hoe to apply LinkAttribute  for menu item  
if menu  is binded with json data

@Html.EJ().Menu("menujson").MenuFields(f=> f.Datasource((IEnumerable<MenuJson>)ViewBag.datasource).Id("mId")
.Text("mText").ParentId("parentId").SpriteCssClass("spriteClass"))
Pls  reply
Thanks


1 Reply

HP Harikrishnan P Syncfusion Team December 10, 2014 09:36 AM UTC

Hi Kalpa,

Thanks for using Syncfusion products.

Query: how to pass url for menu item, LinkAttribute for menu item, if menu is binded with json data.

You can refer the following KB task, to know about how to use the above mentioned properties, when menu is created using local data.

http://www.syncfusion.com/kb/3008/how-to-apply-url-htmlattribute-imageurl-linkattribute-for-menu-items

Please let us know if you have further queries.

Regards,

HariKrishnan


Loader.
Live Chat Icon For mobile
Up arrow icon