BarComboBox text search

Bars for WPF Forum

The latest build of this product (v25.1.4) was released 6 months ago, which was before this thread was created.
Posted 6 days ago by Bjørnar Sundsbø - Norway
Version: 25.1.4
Avatar

Hi,

We we use BarComboBox and it supports text search. The issue is that it doesn't match mid text, and I was hoping for an option for this.

The user wants to select a contact in a drop-down, and the TextMemberPath/DisplayMemberPath is users FullName. FullName is "Firstname, Lastname"

I can use text search for prefix of firstname, but if I enter last name there is no match. I would like to search by any location in the ItemsSource. Is there a way to accomplish this? Either by new feature in 26.1 or by existing functionality.

Best reagards

Bjørnar

[Modified 6 days ago]


Bjørnar Sundsbø

Comments (3)

Posted 6 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Bjørnar,

BarComboBox does not currently provide an option to use "contains" matching. Its text search is prefix-based because it is coupled with the control's inline text-completion behavior.

For example, in a font combobox, typing "C" produces "C[alibri]," where the square brackets represent the selected text. You can continue typing to replace the suggested suffix, press Delete to remove it, or press Enter to commit the full value. This is similar to the behavior of Office comboboxes.

If you need to filter contacts by any portion of FullName, the Editors AutoCompleteBox may be a better fit. Its AutoCompleteBoxStringFilter uses "contains" matching by default, and our Bars "ComboBox and Editors" QuickStart demonstrates hosting an AutoCompleteBox within a ribbon or toolbar.

I hope that helps!


Actipro Software Support

Posted 5 days ago by Bjørnar Sundsbø - Norway
Avatar

The downside is the lack of a command to commit selection/synchronize with selection. Is the contains text search feasible for BarComboBox? I know you're in RC3 so presumably not a last minute addition for the 2026 major releas.


Bjørnar Sundsbø

Posted 4 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Unfortunately, we wouldn't be able to fit any changes into BarComboBox behavior at this time and contains matching would alter the logic flow of how the control currently works.

You could inherit AutoCompleteBox and fire off a command in response to some of its events, like the Submitted event or SelectedItemChanged event.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.