Context menu with page method

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

    Posted 04 Sep 2008 Link to this post


    I'm using the context menu in a Microsoft Grid. I want to hide different menu items depending on the current selected row. I have used a page method and a callback to determine which menu items to hide. The problem is that the menu (the first time after the page was loaded) is displayed with double line spacing. Next time the context menu is displayed, it appears with correct line spacing.

    My sample code is as follows:

    <telerik:RadContextMenu runat="server" ID="ctxMenu" OnClientShowing="showingContextMenu" >

    function showingContextMenu(menu, args)
     var target = args.get_targetElement();
     if (target)
      if (target.value == '')
       PageMethods.GetMenuItemsToHide(currentID, showMenuCallback);

    function showMenuCallback(result)
     var contextMenu = $find('FilterCtrl_ctxMenu');
     for(var i=0; i < result.length; ++i)

  2. Veselin Vasilev
    Veselin Vasilev avatar
    2992 posts

    Posted 08 Sep 2008 Link to this post

    Hello Janni,

    Which skin do you use?

    Can you send us a sample project in a new support ticket demonstrating the problem?

    Sincerely yours,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top