Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ToolBar > RadComboBox is not of type "System.Object" error

Not answered RadComboBox is not of type "System.Object" error

Feed from this thread
  • Sergey avatar

    Posted on Oct 31, 2011 (permalink)

    Hello,

    Unfortunately, I can’t make a sample project to reproduce this error for you, but you’ve probably seen this elsewhere. When I try to show telerik ReportViewer after another telerik controls heavy user control is shown, I get the following error:
    Unhandled Error in Silverlight Application
    Code: 4004   
    Category: ManagedRuntimeError      
    Message: System.ArgumentException: The value "Telerik.Windows.Controls.RadComboBox" is not of type "System.Object" and cannot be used in this generic collection.
    Parameter name: value
       at System.ThrowHelper.ThrowWrongValueTypeArgumentException(Object value, Type targetType)
       at System.Collections.ObjectModel.Collection`1.System.Collections.IList.Add(Object value)
       at Telerik.Windows.Controls.RadToolBar.RepositionItems()
       at Telerik.Windows.Controls.RadToolBar.OnApplyTemplate()
       at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)

    If I open ReportViewer first – it works fine.

    Thank you for any suggestions,
    Sergey

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Nov 3, 2011 (permalink)

    Hi Sergey,

    Unfortunately we haven't seen nor we have received any reports of this issue. Also we cannot reproduce it based on the information you sent and this is why I wanted to ask you if you can give us more details about your scenario.

    If you can try to isolate the issue that would be very helpful as it will help us narrow down the cause and help you get over it. This is why I wanted to ask you to try isolating the steps that allow you to reproduce the problem in a written list. Also you said that issue only appears after another telerik controls heavy user control is shown, but often there are only 2 or 3 controls that are directly involved with a given problem. Can you please try to determine which are the controls that are not related to your issue. We suggest you to use the ‘remove and try’ approach when it is hard for you to determine what is causing the problem. This means that you should remove parts of the code and check if the issue reproduces without it until you find the cause.

    Thank you in advance for your cooperation.

    Kind regards,
    Tina Stancheva
    the Telerik team

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

    Reply

  • Sergey avatar

    Posted on Nov 4, 2011 (permalink)

    Hi Tina,

    We did spent some time, but weren’t able to isolate the issue. To work around it, we had to get a ReportViewer template and replace RadComboBox with a regular combo box. If only it had EmptySelectionBoxTemplate :)

    Thanks,
    Sergey

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Nov 9, 2011 (permalink)

    Hi Sergey,

    I am sorry that you had to change the ControlTemplate of the ReportViewer in order to get over the issue. Unfortunately we cannot help in getting over the exception as we cannot reproduce it locally. This is why I wanted to ask you if you manage to reproduce it in a sample project at a later point, to please send it to us so that we can look further into the issue.

    Best wishes,
    Tina Stancheva
    the Telerik team

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > ToolBar > RadComboBox is not of type "System.Object" error
Related resources for "RadComboBox is not of type "System.Object" error"

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