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

2 posts, 0 answers
  1. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 22 Sep 2010 Link to this post

    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





  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 27 Sep 2010 Link to this post

    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
Back to Top