This question is locked. New answers and comments are not allowed.
In our enivronment, we have static XML sitemaps for our standard product. I am trying to integrate a third party solution, and add items to certain menus at runtime based on the result of a Web service call to the third party. I would really like to not put the code in the razor view, if possible. Here is what we have:
I realize that I will need to somehow insert something inside the .BindTo() method. I'm just not sure, since this particular partial view is generic. Do I need to make it strongly typed and have a method that looks up the information and creates it behind the scenes?
Thanks in advance,
Jeff
@(Html.Telerik().Menu() .Name("SiteMasterTopMenu") .BindTo("SiteMasterTopMenu_" + (!string.IsNullOrEmpty((string)ViewBag.LoginType) ? ViewBag.LoginType : "Employee") ) .HtmlAttributes(new { @class = "smtopmenu" }))
I realize that I will need to somehow insert something inside the .BindTo() method. I'm just not sure, since this particular partial view is generic. Do I need to make it strongly typed and have a method that looks up the information and creates it behind the scenes?
Thanks in advance,
Jeff