ArgumentException was thrown on "RadComboBoxItem"

9 posts, 0 answers
  1. Richard H
    Richard H avatar
    18 posts
    Member since:
    May 2006

    Posted 08 Sep 2011 Link to this post

    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


  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 13 Sep 2011 Link to this post

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

  3. DevCraft banner
  4. Richard H
    Richard H avatar
    18 posts
    Member since:
    May 2006

    Posted 13 Sep 2011 Link to this post

    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.
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 16 Sep 2011 Link to this post

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

  6. Jason
    Jason avatar
    9 posts
    Member since:
    Apr 2011

    Posted 19 Oct 2011 Link to this post

    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
  7. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 21 Oct 2011 Link to this post

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

  8. Annie
    Annie avatar
    11 posts
    Member since:
    Mar 2011

    Posted 15 Dec 2011 Link to this post

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

    Posted 19 Dec 2011 Link to this post

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

  10. Annie
    Annie avatar
    11 posts
    Member since:
    Mar 2011

    Posted 11 Jan 2012 Link to this post

    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
Back to Top
DevCraft banner