Breaking Change T1031277
Visible to All Users

Column filtering is now disabled in LookUpEdit

What Changed

Column filtering is now disabled in LookUpEdit.

Reasons for Change

We capture mouse events when you open an editor/filter popup to close this popup if you click outside of it. When one popup is opened from another popup, you may encounter issues similar to this: GridControl clear filter strange behavior inside LookupEdit (window frozen).

We researched this issue and concluded that it would be necessary to switch to a different mechanism for a proper fix. This may lead to new breaking changes and issues in existing projects. Thus, we decided to disable column filtering in LookUpEdit in order to avoid introducing new issues.

How to Update Existing Apps

If search/filtering is required, we recommend the following options:

XAML
<dxg:LookUpEdit ItemsSource="{Binding Items}" IncrementalFiltering="True" DisplayMember="Name" .../>

XAML
<dxg:LookUpEdit ItemsSource="{Binding Items}"> <dxg:LookUpEdit.StyleSettings> <dxg:SearchLookUpEditStyleSettings /> </dxg:LookUpEdit.StyleSettings> </dxg:LookUpEdit>

How to enable column filtering

IMPORTANT: When column filtering is enabled, you will see the issue demonstrated at T874430, so this approach is not recommended.


You can enable the filter popup as follows if required:

C#
static App() { DevExpress.Xpf.Core.CompatibilitySettings.AllowLookupGridFiltering = true; }
XAML
<dxg:LookUpEdit ItemsSource="{Binding Items}"> <dxg:LookUpEdit.StyleSettings> <dxg:LookUpEditStyleSettings AllowColumnFiltering="True" /> </dxg:LookUpEdit.StyleSettings> </dxg:LookUpEdit>
XAML
<dxg:LookUpEdit ItemsSource="{Binding Items}"> <dxg:LookUpEdit.PopupContentTemplate> <ControlTemplate> <dxg:GridControl Name="PART_GridControl"> <dxg:GridControl.View> <dxg:TableView AllowColumnFiltering="True" /> </dxg:GridControl.View> </dxg:GridControl> </ControlTemplate> </dxg:LookUpEdit.PopupContentTemplate> </dxg:LookUpEdit>

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.