Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ComboBox > ArgumentException was thrown on "RadComboBoxItem"

Not answered ArgumentException was thrown on "RadComboBoxItem"

Feed from this thread
  • Richard H avatar

    Posted on Sep 8, 2011 (permalink)

    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


    Attached files

    Reply

  • Boyan Boyan admin's avatar

    Posted on Sep 13, 2011 (permalink)

    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 >>

    Reply

  • Richard H avatar

    Posted on Sep 13, 2011 (permalink)

    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.

    Reply

  • Boyan Boyan admin's avatar

    Posted on Sep 16, 2011 (permalink)

    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 >>

    Reply

  • Jason avatar

    Posted on Oct 19, 2011 (permalink)

    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

    Reply

  • Boyan Boyan admin's avatar

    Posted on Oct 21, 2011 (permalink)

    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 >>

    Reply

  • Annie avatar

    Posted on Dec 15, 2011 (permalink)

    I'm having the same issue after installing the Silverlight 5 on 14 Dec 2011.
    Is there any fix for this?
    TQ.

    Reply

  • Boyan Boyan admin's avatar

    Posted on Dec 19, 2011 (permalink)

    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 >>

    Reply

  • Annie avatar

    Posted on Jan 11, 2012 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ComboBox > ArgumentException was thrown on "RadComboBoxItem"
Related resources for "ArgumentException was thrown on "RadComboBoxItem""

Silverlight ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]