I also posted this question on this thread: http://www.telerik.com/community/forums/aspnet-ajax/menu/prevent-expandmode-webservice-nodes-from-being-cached.aspx
I have a menu that is loaded on demand but I don't want to have the client cache the values - I want a call made each time to load the values when the menu is expanded. I followed the example from the above thread and it works great when not using rounded corners. However, when I turn on rounded corners, the second time the menu expands, the corners/borders are missing.
It appears this happens any time I clear the collection of menu items. Here is my js:
I have a menu that is loaded on demand but I don't want to have the client cache the values - I want a call made each time to load the values when the menu is expanded. I followed the example from the above thread and it works great when not using rounded corners. However, when I turn on rounded corners, the second time the menu expands, the corners/borders are missing.
It appears this happens any time I clear the collection of menu items. Here is my js:
function mainMenuItemClosed(sender, eventArgs) |
{ |
var item = eventArgs.get_item(); |
if (item) |
{ |
sender.trackChanges(); |
item.get_items().clear(); |
item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService); |
item._itemsLoaded = false; |
sender.commitChanges(); |
} |
} |