Hi ,
I am using latest Telerik release version 2010.2.826.35 .
I am creating RadMenu dynamically in code behind and its added to RadPanel bar.
I am creating RadMenuItem dynamically based on some logic and clear menu items on ClientClosed
Codebehind code
Following is the code in aspx : This code is taken from Telerik Site.
Issue in IE
1 . Alignment issue on second time hover on menu items, Items are generated but whole items are not visible if count is more that 15.
2. If Items are more than 200 then IE hangs and give prompt for non responsive script if i click continue then items are loaded.
Issue in Firefox
1. Items are shown only one time. Once menu is closed it is never shown again although code behind is executed all times.
Please reply for solution.
Thanks
Veenu
I am using latest Telerik release version 2010.2.826.35 .
I am creating RadMenu dynamically in code behind and its added to RadPanel bar.
I am creating RadMenuItem dynamically based on some logic and clear menu items on ClientClosed
Codebehind code
objRadMenu.WebServiceSettings.Path = "../Service/SNetService.asmx";
objRadMenu.WebServiceSettings.Method = "GetUserLinkHistory";
objRadMenu.OnClientItemPopulating = "ShowImage";
objRadMenu.OnClientItemPopulated = "HideImage";
objRadMenu.OnClientItemClosed = "ChildMenuClosed";
objRadMenu.OnClientMouseOver = "ShowToolTip";
RadMenuItem objRadMenuToday = new RadMenuItem(ResourceLang.GetString("Today", "MySettings.aspx"));
objRadMenuToday.ExpandMode = MenuItemExpandMode.WebService;
Following is the code in aspx : This code is taken from Telerik Site.
function ChildMenuClosed(sender, args) {
try {
var item = args.get_item();
var varItemID = item.get_attributes().getAttribute("PKID");
if (varItemID == "5") //Clearing Today Data only
{
item.set_expandMode(Telerik.Web.UI.MenuItemExpandMode.WebService);
item.get_items().clear();
item._itemsLoaded = false;
}
} catch (exp) { }
}
Issue in IE
1 . Alignment issue on second time hover on menu items, Items are generated but whole items are not visible if count is more that 15.
2. If Items are more than 200 then IE hangs and give prompt for non responsive script if i click continue then items are loaded.
Issue in Firefox
1. Items are shown only one time. Once menu is closed it is never shown again although code behind is executed all times.
Please reply for solution.
Thanks
Veenu