Need The feature of editable AutoCompleteBox in combobox

11 posts, 0 answers
  1. Kiran Kanaparthi
    Kiran Kanaparthi avatar
    2 posts
    Member since:
    Jan 2010

    Posted 22 Jan 2010 Link to this post

    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
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 22 Jan 2010 Link to this post

    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.
  3. DevCraft banner
  4. Michael Gaigg
    Michael Gaigg avatar
    9 posts
    Member since:
    Dec 2009

    Posted 28 Jan 2010 Link to this post

    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!!
  5. Kiran Kanaparthi
    Kiran Kanaparthi avatar
    2 posts
    Member since:
    Jan 2010

    Posted 02 Feb 2010 Link to this post

    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.



  6. Yvan
    Yvan avatar
    16 posts
    Member since:
    Sep 2007

    Posted 01 Apr 2010 Link to this post

    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
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 02 Apr 2010 Link to this post

    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.
  8. Yvan
    Yvan avatar
    16 posts
    Member since:
    Sep 2007

    Posted 02 Apr 2010 Link to this post

    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
  9. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 Apr 2010 Link to this post

    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.
  10. k f
    k f avatar
    109 posts
    Member since:
    Jun 2006

    Posted 18 Nov 2010 Link to this post

    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.
  11. Rainer
    Rainer avatar
    5 posts
    Member since:
    May 2011

    Posted 11 May 2011 Link to this post

    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"/>
  12. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 16 May 2011 Link to this post

    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
Back to Top
DevCraft banner