Welcome to the Xceed Community | Help
Community Search  

Detecting if a AutoFilter popup is active

Sort Posts: Previous Next
  •  06-25-2008, 10:56 PM Post no. 13235

    Detecting if a AutoFilter popup is active

    I am doing some hit testing for some custom drag and drop code.  However, my code is interfering with the autofilter control itself.  Is there a way to detect if a auto filter popup is currently being displayed?  If I can detect this then I can route temporarily disable my code while its in effect.

     

     

    Filed under:
  •  07-01-2008, 12:09 PM Post no. 13342 in reply to 13235

    Re: Detecting if a AutoFilter popup is active

    Hi Brent,

     there is no property telling if the AutoFilterControl is  currently displayed.

    A workaround that should work is to get the IsChecked state of the ToggleButton in the template. This should work in every views and themes since the name of the ToggleButton in the ControlTemplate is always the same: "toggleButton".

    To get this working, you must get a reference to the ToggleButton itself: 

    subclass ColumnManagerCell and override void OnApplyTemplate and do  ToggleButton toggleButton = this.GetTemplateChild( "toggleButton" ) as ToggleButton;

    subclass ColumnManagerRow and override Cell CreateCell( Column column) to return your custom ColumnManagerCell subclass.

    Christian Nadeau
    Software Developer
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.