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

Filter for any of multiple words?

1 Answer 123 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mike Trank
Top achievements
Rank 1
Mike Trank asked on 28 Feb 2013, 06:25 AM
Hi.  Would it be possible to modify the "contains" filtering behavior to find any of multiple words in the combobox data?

For example: a combobox item is "follow the yellow brick road".  As I type 'the' then a space and then 'road' it would find this item because it contains any of my filtering words.  The current 'contains' behavior would not have found this item as it would have been looking for 'the road' as one string/keyword.  I hope I am making sense.

Can the client-side events such as itemrequesting or something similar be used to intercept/modify the filter before sent to the data source?

Thank you very much.


-Mike

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 04 Mar 2013, 09:27 AM
Hi Mike,

The desired functionality is not supported our of the box from the RadComboBox, but could be achieve if the filtering is manually performed. If the control is bound to a web service, the developer could query the data set in the desired way. If the web service approach is not applicable, the server ItemsRequested event could be used instead.

All the best,
Dimitar Terziev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
zznbilly
Top achievements
Rank 1
commented on 15 Oct 2022, 06:40 PM | edited

And how can we achieve that? Is there an analytic example with code? Thnx

zznbilly
Top achievements
Rank 1
commented on 30 Sep 2023, 03:29 PM

Any news Mr Dimitar? Is it possible for you to display an example of a web service and one for itemsrequested? I would appreciate that, thnx :)
Attila Antal
Telerik team
commented on 04 Oct 2023, 03:50 PM

Hi zznbilly,

As this scenario is not supported out of the box, we do not have examples for it. As Dimitart mentioned, you can use the built-in APIs to send custom requests to the server where you can access and parse the context and filter the database accordingly.

Here are the instructions to load items from the WebService:

The following article explains how to send custom context to the server:

Other examples on the topic:

Tags
ComboBox
Asked by
Mike Trank
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or