RadContextMenu Unhandled Exception 4004

7 posts, 0 answers
  1. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 03 May 2011 Link to this post

    After simply adding a RadContextMenu to a RadGridView and performing a rigfht click we get this:

    An unhandled exception ('Unhandled Error in Silverlight Application Code: 4004
    Category: ManagedRuntimeError
    Message: System.ArgumentException: Value does not fall within expected range

    HELP!

     

     

     

    <telerik:RadContextMenu.ContextMenu>

     

     

     

     

    <telerik:RadContextMenu x:Name="cmParameters">

     

     

     

     

    <telerik:RadMenuItem Header="Add Condition Set" Name="cmParameters_AddCondSet" />

     

     

     

     

    <telerik:RadMenuItem Header="View/Edit Condition Set" Name="cmParameters_ViewEditCondSet" />

     

     

     

     

    <telerik:RadMenuItem Header="Delete Condition Set" Name="cmParameters_DeleteCondSet" />

     

     

     

     

    <telerik:RadSeparator />

     

     

     

     

    <telerik:RadMenuItem Header="Copy Condition Set" Name="cmParameters_CopyCondSet" />

     

     

     

     

    <telerik:RadMenuItem Header="Paste Condition Set" Name="cmParameters_PasteCondSet" />

     

     

     

     

    </telerik:RadContextMenu>

     

     

     

     

    </telerik:RadContextMenu.ContextMenu>

     

  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 03 May 2011 Link to this post

    Hello Chris,

    Please use the lastest official release 2011 Q1 Service Pack 1.
    It includes a fix for this issue.

    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
  3. DevCraft banner
  4. Chris
    Chris avatar
    26 posts
    Member since:
    Jul 2010

    Posted 03 May 2011 Link to this post

    Downloaded the latest and installed it is still happening!

    HELP!!!

    Telerik.Windows.Controls v2011.1.315.1040
  5. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 04 May 2011 Link to this post

    Hello Chris,

    You need 2011 Q1 Service Pack 1 which is version 2011.1.419.1040.

    All the best,
    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
  6. Roberto Pantalena
    Roberto Pantalena avatar
    19 posts
    Member since:
    Jul 2009

    Posted 09 May 2011 Link to this post

    Hi Hristo,
    I've downloaded and installed the last version (2011.1.419.1040), but I still see problems concerning enabling and disabling of menu items using a binding on IsEnabled property.
    It worked fine since version 2010.3.1110.1040.
    Please solve also this problem.

    Thanks in advance.
    A.

  7. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 09 May 2011 Link to this post

    Hi Roberto,

    We made some changes in IsEnabled property - when you set it to False then RadMenuItem will be disabled no matter what ICommand CanExecute return. But if IsEnabled is True then IsEnabled actual value will be based on ICommand CanExecute result. That is why probably we clear your binding.
    Please specify Binding Mode=TwoWay so that Binding will not be removed internally.

    Let us know if this works for you.

    Kind regards,
    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
  8. Roberto Pantalena
    Roberto Pantalena avatar
    19 posts
    Member since:
    Jul 2009

    Posted 09 May 2011 Link to this post

    It seems to work.
    Thank you very much.
                                    
Back to Top
DevCraft banner