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

InvalidCastException when RadComboBox dropdown is opened

1 Answer 74 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
brandon
Top achievements
Rank 1
brandon asked on 28 Sep 2010, 08:16 PM
Hi there,

Occasionally I will get this exception while trying to open the drop down menu of the RadComboBox:

{System.InvalidCastException: Unable to cast object of type 'MS.Internal.ManagedObjectReference' to type 'Telerik.Windows.Controls.Animation.AnimationSelectorBase'.
   at Telerik.Windows.Controls.Animation.AnimationManager.GetAnimationSelector(DependencyObject obj)
   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Object[] args)
   at Telerik.Windows.Controls.RadComboBox.<>c__DisplayClass5.<OpenDropDownInternal>b__4(Object sender, EventArgs e)
   at Telerik.Windows.Controls.PopupWrapper.OnPopupOpened(Object sender, EventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}

Do you have any idea what causes this?  I am using an internal build of the telerik Silverlight 4 controls that I downloaded from the telerik site on September 3rd. (v. 2010.2.903.1040)

I tried disabling the animations on the RadComboBox but that did not fix the issue.  There isn't anything special about the code; the RadComboBox simply has its ItemsSource property databound to a List<'T> in my view model.

Thanks,
Brandon

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 01 Oct 2010, 01:57 PM
Hi,

We are not aware of such issue with RadComboBox control. Could you please try our Q2 Service Pack 2 release and let me know if you still have any problems with RadComboBox control.

I will be glad to assist you further. 

All the best,
George
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
Tags
ComboBox
Asked by
brandon
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or