Exception: AutoClosePopupWrapper

3 posts, 1 answers
  1. Dominic
    Dominic avatar
    15 posts
    Member since:
    May 2012

    Posted 04 Mar Link to this post

    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. Answer
    Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 08 Mar Link to this post

    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
  3. DevCraft banner
  4. Dominic
    Dominic avatar
    15 posts
    Member since:
    May 2012

    Posted 11 Apr in reply to Nasko Link to this post

    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;
                            }
                        }
                    }
                }
            }

     

     

     

Back to Top