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

Exception: AutoClosePopupWrapper

2 Answers 85 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dominic
Top achievements
Rank 1
Dominic asked on 04 Mar 2016, 04:50 PM

Hello,

I daily get a lot of exception from the RadComboBox (donĀ“t know if also comes from other controls) when closing the popup.

 We use the latest Telerik version. I have no reproduction case. What can I do to track down or prevent the exceptions?

 

2212 Ein Fehler ist aufgetreten.
StackTrace:
   bei MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   bei MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
   bei MS.Internal.XcpImports.Storyboard_Begin(Storyboard storyboard)
   bei Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Boolean animateSelf, Object[] args)
   bei Telerik.Windows.Controls.AutoClosePopupWrapper.set_IsOpen(Boolean value)
   bei Telerik.Windows.Controls.RadComboBox.CloseDropDownInternal()
   bei Telerik.Windows.Controls.RadComboBox.OnIsDropDownOpenChanged(Boolean oldValue, Boolean newValue)
   bei Telerik.Windows.Controls.RadComboBox.OnIsDropDownOpenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
   bei Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   bei System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   bei System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
   bei Telerik.Windows.Controls.RadComboBox.DropDownButtonClick(Object sender, RoutedEventArgs e)
   bei System.Windows.Controls.Primitives.ButtonBase.OnClick()
   bei Telerik.Windows.Controls.RadToggleButton.OnClick()
   bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonDown(MouseButtonEventArgs e)
   bei System.Windows.Controls.Control.OnMouseLeftButtonDown(Control ctrl, EventArgs e)
   bei MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)

 

2212 Ein Fehler ist aufgetreten.
StackTrace:
   bei MS.Internal.XcpImports.MethodEx(IntPtr ptr, String name, CValue[] cvData)
   bei MS.Internal.XcpImports.MethodEx(DependencyObject obj, String name)
   bei MS.Internal.XcpImports.Storyboard_Begin(Storyboard storyboard)
   bei Telerik.Windows.Controls.Animation.AnimationManager.Play(FrameworkElement target, String animationName, Action completeCallback, Boolean animateSelf, 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.EventRoute.InvokeHandlersImpl(Object source, RadRoutedEventArgs args, Boolean raisedAgain)
   bei Telerik.Windows.RadRoutedEventHelper.RaiseEvent(DependencyObject element, RadRoutedEventArgs args)
   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)

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 08 Mar 2016, 08:59 AM
Hello Dominic,

We are not aware of the observed you issue and using the provided information we were not able to reproduce it. Could you please, share with us some more information about your exact scenario -  it would be  really helpful if you can send us an application in which you are observing the issue and if possible with any steps to reproduce. Without being able to reproduce it on our side we will not be able to continuing our investigation.

Also it seems from the stack trace like the AnimationManager is trying to animate some missing element. So what we could also suggest you is to disable the AnimationManager - please, give it a try and let us know if the exception still occurs:
telerik:AnimationManager.IsAnimationEnabled="False"
telerik:AnimationManager.AnimationSelector="{x:Null}"

Hope this helps.

Regards,
Nasko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
Dominic
Top achievements
Rank 1
answered on 11 Apr 2016, 08:59 AM

Hello,

thanks for your effort. After searching a long time, we propably fixed the issue.

We override the OnTextChanged() in our derived combobox class (which suprisingly do not occur in the stacktrace) and set the dropdown to open.

protected override void OnTextChanged(string oldValue, string newValue)
        {
            base.OnTextChanged(oldValue, newValue);
 
            if (this.loaded)
            {
                if (this.IsFocused)                             <-- new code, this fixes the issue.
                {
                    if (!Equals(oldValue, newValue) && newValue != null)
                    {
                        if (this.openDropDownOnEdit && !this.IsDropDownOpen)
                        {
                            this.IsDropDownOpen = true;
                        }
                    }
                }
            }
        }

 

 

 

Tags
ComboBox
Asked by
Dominic
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Dominic
Top achievements
Rank 1
Share this question
or