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

RadComboBox - InvalidOperationException

5 Answers 76 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Matthias Bibo
Top achievements
Rank 1
Matthias Bibo asked on 15 May 2014, 10:14 AM
Hello,

we sometimes get an exception on a Radcombobox (with the newest Telerik dlls).
This Combobox ist placed in a toolbar, with ist in a RadTabbar. when Opeinging the combox and switching the tab sometimes the combox gets broken and cannot be opend anymore.

The following exception occurs:


{System.InvalidOperationException: Animationsziel nicht festgelegt.
bei MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
bei MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
bei System.Windows.Media.Animation.Storyboard.Begin()
bei Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Boolean animateSelf, Object[] args)
bei Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Object[] args)
bei Telerik.Windows.Controls.AutoClosePopupWrapper.set_IsOpen(Boolean value)
bei Telerik.Windows.Controls.AutoClosePopupWrapper.ClickedOutsidePopup(Object sender, RadRoutedEventArgs e)
bei Telerik.Windows.RadRoutedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
bei Telerik.Windows.RadRoutedEventArgs.InvokeHandler(Delegate handler, Object target)
bei Telerik.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RadRoutedEventArgs routedEventArgs)
bei Telerik.Windows.RouteItem.InvokeHandler(RadRoutedEventArgs routedEventArgs)
bei Telerik.Windows.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
bei Telerik.Windows.EventRoute.InvokeHandlers(Object source, RadRoutedEventArgs args)
bei Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
bei Telerik.Windows.DependencyObjectExtensions.RaiseEvent(DependencyObject element, RadRoutedEventArgs e)
bei Telerik.Windows.Controls.PopupPlacement.OnClickedOutsidePopup(Object originalSource)
bei Telerik.Windows.Controls.PopupPlacement.OnMouseDownHandler(Object sender, MouseButtonEventArgs e)
bei MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
bei MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)}

5 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 16 May 2014, 08:32 AM
Hello Matthias,

We have tried to reproduce the exception, but we were not able to do so. In addition as it happens sometimes we have tried different scenarios involving a lot of clicking, but still no luck.

So I am attaching my test application and it would be great if you can check it out and let me know if I am not missing something and can you observe the issue in there. Also if the issue cannot be reproduced in the attached project it would be helpful if you can send us the application in which you are observing it and if possible with any steps to reproduce.

Anyway it seems from the stack trace like the AnimationManager is trying to animate some missing element. So as a workaround you can disable the AnimationManager as shown in the project on the first RadComboBox:

telerik:AnimationManager.IsAnimationEnabled="False"
telerik:AnimationManager.AnimationSelector="{x:Null}"

Hope this would help.


Regards,
Georgi
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
David
Top achievements
Rank 1
answered on 28 Jan 2015, 11:51 AM
Hello,

I have the same exception after update assemblies to the latest version.

The RadRibbonCombobox is displayed in a wrong visual state maybe because the lost focus handler when i change between RadRibbonTabs (Same stacktrace)

Hope this would help.
0
Georgi
Telerik team
answered on 30 Jan 2015, 12:42 PM
Hi David,

Thank  you for the additional information.

Can you confirm that this happens only sometime or it can be reproduce every time?
Also it would be great if you can let us know if you have something additional that could be causing it as sending us simple project would be really helpful.

Looking forward to your reply.

Regards,
Georgi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
David
Top achievements
Rank 1
answered on 02 Feb 2015, 08:13 AM
Hi Georgi,

It happens when i keep open the RadComboBox Popup and change to another RibbonTab. (Only in Windows7 Theme) but i have been unable to reproduce in a simple project.

0
Georgi
Telerik team
answered on 05 Feb 2015, 07:17 AM
Hi David,

Thank you for narrowing it down to the Windows7 theme.

So can you let us know if you are using StyleManager of ImplicitStyles to set the theme.
As you mentioned that this started to happens after you upgraded to the latest (2014.3.1202) version it would be helpful if you can tell us in witch version of the controls the issue was not present.

Also as this can't be reproduced in simple project a video showing the issue would be of great help.

Hope to hear from you soon.

Regards,
Georgi
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ComboBox
Asked by
Matthias Bibo
Top achievements
Rank 1
Answers by
Georgi
Telerik team
David
Top achievements
Rank 1
Share this question
or