Filter ListBox based on textbox in WPF

2 posts, 0 answers
  1. Sandeep
    Sandeep avatar
    1 posts
    Member since:
    Apr 2016

    Posted 27 Apr Link to this post


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



    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

  2. Yana
    Yana avatar
    4550 posts

    Posted 28 Apr Link to this post

    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.

    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. DevCraft banner
Back to Top