This is a migrated thread and some comments may be shown as answers.

RadMenuItem issue on clear Items in JS (Prevent ExpandMode=WebService nodes from being cached)

1 Answer 76 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Veenu
Top achievements
Rank 1
Veenu asked on 22 Sep 2010, 12:47 PM
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
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





1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 27 Sep 2010, 08:13 AM
Hello Veenu,

Can you isolate this issue in a sample project along with the data loaded and send it along so we can check what is going on? Thank you in advance.

Sincerely yours,
Kamen Bundev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Menu
Asked by
Veenu
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or