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

ArgumentException was thrown on "RadComboBoxItem"

8 Answers 48 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Richard H
Top achievements
Rank 1
Richard H asked on 08 Sep 2011, 07:53 AM
Hi There,

I am receiving a the following error in the VS 2010 designer as well as at runtime when I attempt to set the Content property on a RadComboBoxItem that has been declaratively added to a RadComboBox in XAML:

ArgumentException was thrown on "RadComboBoxItem": Value does not fall within the expected range.

at MS.Internal.XcpImports.CheckHResult(UInt32 hr) at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, String s) at MS.Internal.XcpImports.SetValue(IManagedPeerBase doh, DependencyProperty property, Object obj) at System.Windows.DependencyObject.SetObjectValueToCore(DependencyProperty dp, Object value) at System.Windows.DependencyObject.SetEffectiveValue(DependencyProperty property, EffectiveValueEntry& newEntry, Object newValue) at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation) at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter) at System.Windows.Controls.ContentControl.set_Content(Object value)

I created a simple application to demonstrate. The project contains a single Page named "MainPage". The project consists of a single file called MainPage.xaml (see example below) that contains a RadComboBox with a single RadComboBoxItem contained in it as follows:
 

<UserControl x:Class="ReproRadComboBoxProblem.MainPage"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" >
 
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadComboBox>
            <telerik:RadComboBoxItem Content="ABC"/>
        </telerik:RadComboBox>
    </Grid>
</UserControl>

I am using VS 2010 SP1. I have both the Silverlight 4 Tools and Silverlight 5 RC Tools installed on a Windows 7 (64-bit) machine. The project is set to use Silverlight 4. I am using the latest internal build of the Telerik RadControls for Silverlight 2011 Q2 components (version 2011.2.823.1040).

Any help in understanding this problem would be greatly appreciated.

Thanks,
Richard


8 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 13 Sep 2011, 01:22 PM
Hello Switch,

This error is because of Silverlight 5 RC. We are having problems with some of the controls when run against SL5 RC and this is one of them. Setting Content or header to some of the controls: RadTabControl, RadComboBox and RadDocking causes this error. We have reported this problems to Microsoft as they say there will be no breaking changes with SL5 and all SL4 applications should be able to work without problems. We will definitely work on resolving them, but in the moment I can't give you a specific time frame when there will be stable version compatible with Silverlight 5 RC. But I can assure you that we are tightly following Microsoft releases and will try to provide compatible controls as soon as possible.

Regards,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Richard H
Top achievements
Rank 1
answered on 13 Sep 2011, 07:44 PM
Thanks for the quick response.  It's certainly unfortunately how the installation of the Silverlight 5 RC tools have affected by Silverlight 4 app. I'll look forward to news of a resolution to this problem.
0
Boyan
Telerik team
answered on 16 Sep 2011, 09:34 AM
Hi Richard H,

We work with Microsoft for this one and it will be fixed in the next drop of Silverlight 5.

Greetings,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jason
Top achievements
Rank 1
answered on 19 Oct 2011, 07:31 PM
Any new news on this?  If MS Silverlight is in RC - that should mean a large bug like this should be resolved by now!
Regards
0
Boyan
Telerik team
answered on 21 Oct 2011, 01:55 PM
Hi Jason,

We have tested the issue with some private builds that Microsoft are sending us and it is fixed. It will be available in the next public build they release

Regards,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Annie
Top achievements
Rank 1
answered on 15 Dec 2011, 10:06 AM
I'm having the same issue after installing the Silverlight 5 on 14 Dec 2011.
Is there any fix for this?
TQ.
0
Boyan
Telerik team
answered on 19 Dec 2011, 12:43 PM
Hello Annie,

This issue should be fixed. We have tested our controls and there was no such problem with our SL5 binaries. Could you please provide some more details how you are getting this error. Are you using SL5 project with our SL4 binaries from Q3? And also is it happening in some specific scenario or just plain RadCombobox with an item declared in XAML like that:
<telerik:RadComboBox>
        <telerik:RadComboBoxItem Content="ABC"/>
</telerik:RadComboBox>
Maybe it will be better if you wait a few days for our binaries build against SL5 which we will release this week and check if the problem persist.


All the best,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Annie
Top achievements
Rank 1
answered on 11 Jan 2012, 09:15 AM
Hi Boyan,

After recompile the application with Q3SP1, the problem solve. This problem only happen on those PC which have upgrade to Silverlight 5 only.
TQ
Tags
ComboBox
Asked by
Richard H
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Richard H
Top achievements
Rank 1
Jason
Top achievements
Rank 1
Annie
Top achievements
Rank 1
Share this question
or