Conversion Error when binding RoutedUICommands to RadContextMenu

2 posts, 0 answers
  1. Norbert
    Norbert avatar
    2 posts
    Member since:
    Jul 2012

    Posted 19 Jul 2012 Link to this post


    I'm using data bound Commands in my application. I'm using ReadonlyCollections storing the RoutedUICommands bound to ItemsSource of the Menu. This works fine when using the standard WPF context menu. However when i try to use RadContextMenu a NotSupportedException is thrown, saying that CommandConverter cannot convert RoutedUICommand to String. Why would it want do to this conversion anyway?

    Any help would be appreciated.

    This is the original code using ContextMenu (MyCommandList is of type ReadOnlyCollection<RoutedUICommand>) which is working:

    <ContextMenu ItemsSource="{Binding Path=MyCommandList}"/>

    Here is the code with RadContextMenu that is not working:

     <telerik:RadContextMenu ItemsSource="{Binding Path=MyCommandList}"/>

  2. Hristo
    Hristo avatar
    832 posts

    Posted 20 Jul 2012 Link to this post

    Hello Norbert,

    Could you send us your sample project so that we can investigate this further?

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top