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

4 posts, 1 answers
  1. T. Tanaka
    T. Tanaka avatar
    6 posts
    Member since:
    Apr 2012

    Posted 18 Jul 2012 Link to this post

    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
     
     
  2. Georgi
    Admin
    Georgi avatar
    348 posts

    Posted 19 Jul 2012 Link to this post

    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.

  3. DevCraft banner
  4. T. Tanaka
    T. Tanaka avatar
    6 posts
    Member since:
    Apr 2012

    Posted 19 Jul 2012 Link to this post

    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 
  5. Answer
    Georgi
    Admin
    Georgi avatar
    348 posts

    Posted 20 Jul 2012 Link to this post

    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.

Back to Top