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

Autocomlete box and multiple dimensional search

1 Answer 49 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Eyal
Top achievements
Rank 1
Eyal asked on 04 Feb 2013, 04:35 PM
Hello Telerik Team,
 
Can  RadAutoCompleteBox  control support multiple dimension source such as a DataTable ?
 
If it does, can you send us an example ?
 
Thanks in advance,
 
Avishay

1 Answer, 1 is accepted

Sort by
0
Accepted
Yana
Telerik team
answered on 05 Feb 2013, 02:05 PM
Hi Avishay,

Thank you for contacting us.

The RadAutoCompleteBox control does not support an ItemsSource of type DataTable - it expects its data source to be of type IEnumerable.

However, the control provides a way to customize its filtering behavior ( through the FilteringBehavior property), so actually you can take the items and manually filter them from any datasource you need. 

I have attached a very simple project demonstrating the approach. Note the CustomFilteringBehavior class - the FindMatchingItems method should return a list of the filtered items.

Hope this helps.

Regards,
Yana
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
AutoCompleteBox
Asked by
Eyal
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or