Posted
on Dec 16, 2011
(permalink)
Hello,
I have a question about the RadContextMenu. My problem is I am not able to open a RadContextMenu manually through the code.
* I created a ContextMenu + MenuItems in code behind
* I NOT called the function RadContextMenu.SetContextMenu
* I set IsOpen = true for opening the menu => Error: Unhandled Error (Application_UnhadledException) Object reference not set to an instance of an object
What do I wrong, how can I open a ContextMenu through code behind????
regards Richard Koslik
Reply
Answer
Yana
Yana
Posted
on Dec 16, 2011
(permalink)
Hi Richard,
You should set a target to the context menu in order to open it properly. This can be done by other using SetContextMenu method as explained
here or setting its PlacementTarget property:
Kind regards,
Yana
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Reply
Posted
on Dec 19, 2011
(permalink)
Thanks, it works now!
regards Richard Koslik
Reply