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

Need The feature of editable AutoCompleteBox in combobox

10 Answers 267 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Kiran Kanaparthi
Top achievements
Rank 1
Kiran Kanaparthi asked on 22 Jan 2010, 12:54 PM
Hi Support | telerik

I my requirement is binding items to combobox in which it should be editable and has autocompletebox option .

if i enter the data on the combobox itemtemplate , it should filter the items in the dropdown.


can you give me the solution.


With Regards,
Kiran

10 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 22 Jan 2010, 12:58 PM
Hello,

Please, check our online examples for more information:
- Data-binding and autocomplete in editable combobox:
http://demos.telerik.com/silverlight/#ComboBox/DataBinding
- Filtering
http://demos.telerik.com/silverlight/#ComboBox/Filtering

The online help could also be of help:
http://www.telerik.com/help/silverlight/radcombobox-overview.html

Best wishes,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael Gaigg
Top achievements
Rank 1
answered on 28 Jan 2010, 09:45 PM
your filtering sample doesn't seem to work, at least not in my understanding of typing would reduce the available list items by searching either by StartsWith or Contains (which is what I need), i.e. my comboboxitems will be reduced to applicable items only as I type.

<telerikInput:RadComboBox FilteringMode="Contains" telerik:TextSearch.TextPath="Name" ....

I played with all possible combinations of IsEditable, IsFilteringEnabled, IsTextSearchEnabled - nothing seems to work as expected.

Could you please attach a code sample that works? Thanks!!
0
Kiran Kanaparthi
Top achievements
Rank 1
answered on 02 Feb 2010, 08:29 AM
Hi
i used the Autocompletebox control in following way.

xaml:-
-------

<

 

telerikcontrols:RadComboBox x:Name="EmployeeAutoCompleteBox"  

 

IsEditable="True"  FilteringMode="StartsWith"  SelectedIndex="0" DisplayMemberPath="EmployeeDisplayName"

 

KeyDown="EmployeeAutoCompleteBox_KeyDown" Width="250" Height="23" SelectionChanged="EmployeeAutoCompleteBox_SelectionChanged"

 

 

/>
xaml.cs:-
----------

EmployeeAutoCompleteBox.ItemsSource = EmployeeCollection;                // EmployeeCollection is List in which members are Id, FIrstName, LastName.


Hope it helps you.

Best Regards,
Kiran.



0
Yvan
Top achievements
Rank 1
answered on 01 Apr 2010, 02:48 PM
Hi,

I have tried the lastest version of your demo (Q1 2010) and it seems that Kiran was right, It's currently impossible to have an editable autocomplete ComboBox.

Is it possible to add this feature ?

Thanks
Yvan
0
Konstantina
Telerik team
answered on 02 Apr 2010, 01:58 PM
Hello Yvan,

Thank you for participating in the discussion.

To have autocomplete ComboBox you will have to define the ComboBox like so:
<telerikInput:RadComboBox IsEditable="True" FilteringMode="StartsWith" />
The only thing different from the AutoCompleteBox in Silverlight toolkit is that the ComboBox doesn't expand when starting to write in the TextBox. But if you first expand it and then type in it, it behaves as expected. Is that what you mean?

Looking forward to your reply.

Greetings,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Yvan
Top achievements
Rank 1
answered on 02 Apr 2010, 04:24 PM
Hi Konstantina,

Not realy,

I want a AutoComplete ComboBox that it's not possible to enter other information than the comboxboc content but it's possible to enter the search text in the text region. I also want that the combobox list is automatiquely filtered went I type the text.

I haved try your demo (http://demos.telerik.com/silverlight/#ComboBox/Configurator ) with this properties:

  • TextSearchMode = StartsWIth
  •  IsFilteringEnabled = true
  • ClearSelectionButtonVisibility = Visible
  • CanAutocompleteSelectItems = true
  • IsEditable = true
  • IsReadOnly = false
  • OpenDropDownOnFocus

 

But It seem that the CanAutocompleteSelectItems don't show me the first found item in the combobox text region.

I want a behavior that's not possible to enter other text than the combobox list (it's currently possible with the IsReadOnly = true but it's not possible to enter text in the combobox text region).

Thanks

Yvan
0
Valeri Hristov
Telerik team
answered on 06 Apr 2010, 04:15 PM
Hi Yvan,

In its current version RadComboBox cannot autocomplete when the filtering is enabled. This is something that we will change in the near future, but unfortunately I cannot promise a specific date for this feature.

By the way, the CanAutocompleteSelectItems property affects the selection of the control, not the autocomplete, e.g. when the property is true and the autocomplete completes an item, the SelectedItem/Value properties are updated. If the property is false, the values are not updated. The default value (null) switches the behavior depending on the value of the IsEditable property.

Sincerely yours,
Valeri Hristov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
k f
Top achievements
Rank 1
answered on 18 Nov 2010, 09:55 PM
I'm working through something like this myself.  To address the issue of not allowing users to enter in anything that doesn't match the text of items in your collection.

Set IsReadOnly to True.
0
Rainer
Top achievements
Rank 1
answered on 11 May 2011, 07:35 AM
Hello, we are using this RadComboBox, but it seems like even if I set CanAutocompleteSelectItems="False", it sets the SelectedItem to the first matching listi tem. We need a combo box with filtering, autocompletion, but no selection on typing. 
This is what we have, we've tried all kinds of combos on those options:

<telerik:RadComboBox Name="radComboBox1" Width="Auto" 
                                 ItemTemplate="{StaticResource ComboBoxItemTemplate}"    
                                 ItemsSource="{Binding Path=Entities}"   
                                 SelectedItem="{Binding SelectedEntity, Mode=TwoWay}"                                  
                                 IsFilteringEnabled="True" 
                                 CanAutocompleteSelectItems="False"
                                 SelectionBoxTemplate="{StaticResource ComboBoxItemTemplate}" 
 EmptyText="Please select an entity..."                                
                                 telerik:TextSearch.TextPath="Name" TextSearchMode="Contains" IsEditable="True" StaysOpenOnEdit="True" 
OpenDropDownOnFocus="True" CanKeyboardNavigationSelectItems="False"/>
0
Yana
Telerik team
answered on 16 May 2011, 08:58 AM
Hello,

I've tested the provided code and the SelectedItem is not updated while the user types in the combobox. I've attached my test page, could you please download it and give it a try?

Kind regards,
Yana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ComboBox
Asked by
Kiran Kanaparthi
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Michael Gaigg
Top achievements
Rank 1
Kiran Kanaparthi
Top achievements
Rank 1
Yvan
Top achievements
Rank 1
Konstantina
Telerik team
k f
Top achievements
Rank 1
Rainer
Top achievements
Rank 1
Yana
Telerik team
Share this question
or