c# - how to close a RadContextMenu manually -
i trying use itemmouseleave
, itemmouseenter
events of radlistview
in order add , remove items radcontextmenu
, noticed dynamically adds items context menu while open. did not want. created bool variable keep track of open , closed state dropdownclosed
, dropdownopened
events of context menu. did not work, because if right click outside of item , right click on item while context menu open seems context menu not close moves mouse's location. question how can force context menu close can update bool using keep track of open state. thanks!
here how can close context menu manually:
contextmenu.dropdown.closepopup();
Comments
Post a Comment