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

RadContextMenu Unhandled Exception 4004

6 Answers 103 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 03 May 2011, 01:22 PM
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>

 

6 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 03 May 2011, 02:38 PM
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
0
Chris
Top achievements
Rank 1
answered on 03 May 2011, 03:02 PM
Downloaded the latest and installed it is still happening!

HELP!!!

Telerik.Windows.Controls v2011.1.315.1040
0
Hristo
Telerik team
answered on 04 May 2011, 08:41 AM
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
0
Roberto Pantalena
Top achievements
Rank 1
answered on 09 May 2011, 08:45 AM
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.

0
Hristo
Telerik team
answered on 09 May 2011, 11:42 AM
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
0
Roberto Pantalena
Top achievements
Rank 1
answered on 09 May 2011, 04:07 PM
It seems to work.
Thank you very much.
                                
Tags
Menu
Asked by
Chris
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Chris
Top achievements
Rank 1
Roberto Pantalena
Top achievements
Rank 1
Share this question
or