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

NullReference in ContextMenu

1 Answer 64 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Rickard
Top achievements
Rank 1
Rickard asked on 06 Mar 2010, 05:52 PM
I have two context menus in my application.

In the Loaded event i create an instance of a usercontrol and attach one of the context menus to it.

RadContextMenu

 

.SetContextMenu(c, ctxView);

 


When i later on tries to switch context menu of the usercontrol:

RadContextMenu

 

.SetContextMenu(c, ctxEdit);

 


 i get a NullReferenceException in Telerik.Windows.Controls.RadContextMenu.ClearReferences()

Any suggestions on how to fix this?

/Björn

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 08 Mar 2010, 04:37 PM
Hi Rickard,

I'm unable to reproduce your scenario. Please find the attached project that simulate your case and let me know if it is not correct.
It will be easier if you could open a support ticket and attach the project.

Greetings,
Hristo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Menu
Asked by
Rickard
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or