Menu does not disappear on click of a menu item

2 posts, 0 answers
  1. Punit
    Punit avatar
    12 posts
    Member since:
    Sep 2008

    Posted 25 Nov 2008 Link to this post

    Hi
    I am using menu as a context menu on grid.

    I am inserting a new menu item at runtime from JavaScript. My problem is that the Menu does not disappear after on click event.

    var

     

    childItem = new Telerik.Web.UI.RadMenuItem();

     

     

     

     

     

    childItem.set_text(strOption);

    childItem._click = AdjustOwner_LoadDropdown; // AdjustOwner_LoadDropdown is a function

    menu.get_items().insert(2, childItem);

    Am I missing setting some property?

     

     

     

     

     

     

     

  2. Punit
    Punit avatar
    12 posts
    Member since:
    Sep 2008

    Posted 25 Nov 2008 Link to this post

     

    Hi
    I am using menu as a context menu on grid.

    I am inserting a new menu item at runtime from JavaScript. My problem is that the Menu does not disappear after on click event.

    var childItem = new Telerik.Web.UI.RadMenuItem();

     

    childItem.set_text(strOption);

    childItem._click = AdjustOwner_LoadDropdown; // AdjustOwner_LoadDropdown is a function

    menu.get_items().insert(2, childItem);

    Am I missing setting some property?

Back to Top