NullReference in ContextMenu

2 posts, 0 answers
  1. Rickard
    Rickard avatar
    9 posts
    Member since:
    Jun 2012

    Posted 06 Mar 2010 Link to this post

    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.



    .SetContextMenu(c, ctxView);


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



    .SetContextMenu(c, ctxEdit);


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

    Any suggestions on how to fix this?

  2. Hristo
    Hristo avatar
    832 posts

    Posted 08 Mar 2010 Link to this post

    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.

    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.
Back to Top