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

Menu does not disappear on click of a menu item

1 Answer 64 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Punit
Top achievements
Rank 1
Punit asked on 25 Nov 2008, 07:36 PM

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?

 

 

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Punit
Top achievements
Rank 1
answered on 25 Nov 2008, 07:52 PM
 

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?

Tags
Menu
Asked by
Punit
Top achievements
Rank 1
Answers by
Punit
Top achievements
Rank 1
Share this question
or