We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to filter dropdown items in WPF editable ComboBoxAdv?

Platform: WPF |
Control: ComboBoxAdv

This article describes how to filter dropdown items in WPF editable ComboBoxAdv.

To obtain the ComboBoxAdv text using ComboBoxAdv.KeyUp event.



    <syncfusion:ComboBoxAdv x:Name="comboBoxAdv" HorizontalAlignment="Center" VerticalAlignment="Center" Width="200" Height="25" ItemsSource="{Binding List}" DisplayMemberPath="Name" IsEditable="True">
            <i:EventTrigger EventName="KeyUp">

In the below code to filter the ComboBoxAdv collectionview itemsource based on obtained ComboBoxAdv text.


public class FilterAction : TargetedTriggerAction<ComboBoxAdv>
    protected override void Invoke(object parameter)
        CollectionView items = (CollectionView)CollectionViewSource.GetDefaultView(Target.ItemsSource);
        items.Filter = ((o) =>
            if (String.IsNullOrEmpty(Target.Text))
                return true;
                if ((o as Model).Name.Contains(Target.Text))
                    return true;
                    return false;

The output for the above code is shown below


View sample in GitHub

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile