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

Can I Input value that is not exist in ItemsSource by ComboBox

3 Answers 120 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
T. Tanaka
Top achievements
Rank 1
T. Tanaka asked on 19 Jul 2012, 12:48 AM
Hi,

I have used ComboBox to simulate AutoCompleteBox,
and the settings like following.

<Style x:Key="AutoCompleteBoxStyle" TargetType="telerikInput:RadComboBox">
    <Setter Property="IsEditable" Value="True" />
    <Setter Property="IsFilteringEnabled" Value="True" />
    <Setter Property="CanAutocompleteSelectItems" Value="False" />
    <Setter Property="TextSearchMode" Value="Contains" />
    <Setter Property="StaysOpenOnEdit" Value="True" />
    <Setter Property="OpenDropDownOnFocus" Value="True" />
    <Setter Property="CanKeyboardNavigationSelectItems" Value="False" />
</Style>

The problem is that I want to input values that are not exist in ItemsSource.
For example, I have a list contains values of "01 A" "02 B" "03 C"  and "04 D" , and set it into ItemsSource of AutoCompleteBox above.
Then I may input "01 A" , it is exist in list above,so it's OK.
But I also want to input values like "01" or "ABC" , because they are not exist in ItemsSource, when I lost focus from AutoCompleteBox above,the value I inputted will disappear. 

There is any way to let me input values that are not exist in ItemsSource of ComboBox?

Best Regards,
Liu
 
 

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 19 Jul 2012, 07:32 AM
Hello Liu,

So far RadComboBox does not support adding values to the ItemsSource, but we are currently working on our own RadAutoCompleteBox. It is scheduled for our next major release (Q3 2012) and it should allow such functionality.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
T. Tanaka
Top achievements
Rank 1
answered on 19 Jul 2012, 07:59 AM
Hi Georgi,


Thank you for your reply.


I have some more questions about title.


1.
>So far RadComboBox does not support adding values to the ItemsSource
That is fine to us.
We want to input values that are not in ItemsSource to the RadComboBox, and apply it into property which are bound to SelectedValue of ComboBox.
And we don't want the input value be added to the ItemsSource.
Is this possible?


2.
>we are currently working on our own RadAutoCompleteBox. 
I am using Q1 2012,and RadAutoCompleteBox does not exist in it.
So I have to use ComboBox to simulate AutoCompleteBox .
Does it mean RadAutoCompleteBox will be released as a new control?


3.
If the answer of 2. is yes, I also want to know the main features about AutoCompleteBox.
 
4.
> It is scheduled for our next major release (Q3 2012)
When will the next major version(Q3 2012) be released?


Best Regards,
Liu 
0
Accepted
Georgi
Telerik team
answered on 20 Jul 2012, 11:03 AM
Hello Mitsuru,

The RadComboBox inherits from Selectorcan't select item (SelectedValue) that is not from ItemsSource, therefore you won't be able to implement the desired behavior. That is one of the reasons we have decided to create a new control called RadAutoCompleteBox, where this will be possible and basically it will have filtering , auto completing, selecting Items, we will support different SelectionModes and AutoComplete modes.
So the RadAutoCompleteBox will be released with or Q3 2012, which is scheduled for the middle of October.

Regards,
Georgi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ComboBox
Asked by
T. Tanaka
Top achievements
Rank 1
Answers by
Georgi
Telerik team
T. Tanaka
Top achievements
Rank 1
Share this question
or