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

Binding a Search box to a list box?

1 Answer 1104 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Calin
Top achievements
Rank 1
Calin asked on 23 Apr 2019, 03:50 PM

I have a list box, with a lengthy list of items (Interests List Box).  A user selects which Interests are likes, and they populate into a different list box for Likes (Likes List Box)

 

To make searching for specific things easier, I would like to use a search box to help narrow down results. Here is a quick snippet of examples of some of my items:

                    <telerik:RadListBoxItem runat="server" Text="Music-Country" />
                    <telerik:RadListBoxItem runat="server" Text="Music-Rap" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Cartoons" />
                    <telerik:RadListBoxItem runat="server" Text="TV-Drama" />

 

So if I type "Music" in the search box, I would like it to filter down and show results that start with "Music-" so they do not have to scroll all the way through the Interests List Box to get there. Once they find what they are looking for, I want them to be able to click the option they were looking for and add it to the Likes List box. I am having trouble finding a way to link the list box and search box together, is this possible?

 

 

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 24 Apr 2019, 01:53 PM
Hello Calin,

If you need to filter the items in the ListBox, you can check the following Code Library: https://www.telerik.com/support/code-library/client-side-radlistbox-filter

That would allow the user to decrease the number of items visible, and select the desired items more easily.

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Calin
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or