This is a migrated thread and some comments may be shown as answers.

Filter ListBox based on textbox in WPF

1 Answer 475 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 27 Apr 2016, 06:32 PM

 

Objective:  To filter the listbox (Computers) and select an item whose value matches exactly with that of textbox (Search) value.

 

Considerations:

1) The items from the listbox are binded from the database.
2) The item in the listbox should be selected by default when textbox value matches with the listbox item.

 

Please help me on this

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 28 Apr 2016, 08:16 AM
Hello Sandeep,

Regarding filtering items, I'd suggest you take a look at the RadListBox Grouping and Filtering example in WPF Demos.

As to the selection of items, you could use SelectedItemsSource property of the control.

I hope this will help get started.

Regards,
Yana
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
ListBox
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or