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

RadExpander runtime error Telerik Ver. 2011.1.0315.1040

1 Answer 43 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Pawan Sharma
Top achievements
Rank 1
Pawan Sharma asked on 05 Jul 2011, 09:30 AM
We are getting run time silverlight error while loading Radexpander sometimes. We are using Silverlight 4 and telerik ver. 2011.1.0315.1040.
I have pasted the error below:

Message: Unhandled Error in Silverlight Application

Code: 4004   

Category: ManagedRuntimeError      

Message: System.InvalidOperationException: System.InvalidOperationException: Element is already the child of another element.

   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)

   at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)

   at System.Windows.Media.Animation.Storyboard.Begin()

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Boolean animateSelf, Object[] args)

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Boolean animateSelf)

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName)

   at Telerik.Windows.Controls.RadExpander.ChangeExpandedStates()

   at Telerik.Windows.Controls.RadExpander.OnApplyTemplate()

   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)

   at MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)

   at MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)

   at System.Windows.Media.Animation.Storyboard.Begin()

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Boolean animateSelf, Object[] args)

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Boolean animateSelf)

   at Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName)

   at Telerik.Windows.Controls.RadExpander.ChangeExpandedStates()

   at Telerik.Windows.Controls.RadExpander.OnApplyTemplate()

   at System.Windows.FrameworkElement.OnApplyTemplate(IntPtr nativeTarget)    


Please let us know what is causing this to occur and workaround for this issue.

Thanks

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Jul 2011, 08:56 AM
Hi Pawan Sharma,

We are not aware of this issue. And I wasn't able to reproduce it locally. Can you please give us more details about the scenario in which the RadExpander is used. Also, have you updated the version of the controls?

During the Q1 2011 the RadExpander control went under extensive changes. Our goal was to improve the performance of the control and fix many of the bugs. However, we couldn't achieve this without introducing some changes in its default ControlTemplate. And if you have applied a custom style for the control, this might be causing exceptions but unfortunately I cannot be sure without having more information about your  implementation of the control.

All the best,
Tina Stancheva
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Expander
Asked by
Pawan Sharma
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or