AutoComplete does not work unless dropdown is open

8 posts, 1 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 24 Feb 2010 Link to this post

    Hi.. I have the following. The autocomplete does not work unless the Combo dropdown is open. Any ideas why. How can get the autocomplete to work when the Combo has focus.. thanks again for your help.

      <telerikPresentation:RadComboBox  TabIndex="4" Height="54"  Name="cmbCustomer" TextSearch.TextPath="cust_name" Style="{StaticResource requiredFieldValidationStyle}"  SelectedIndex="0" SelectedItem="{Binding cust_name, Mode=TwoWay}" SelectedValue="{Binding Path=cust_name}" SelectedValuePath="cust_name" Width="332" >

                        <telerikPresentation:RadComboBox.Effect>

                            <DropShadowEffect BlurRadius="0" ShadowDepth="2" />

                        </telerikPresentation:RadComboBox.Effect>

                        <telerikPresentation:RadComboBox.ItemTemplate>

                            <DataTemplate>

                                <Grid Margin="5" Width="300">

                                    <Grid.ColumnDefinitions>

                                        <ColumnDefinition />

                                        <ColumnDefinition />

                                        <ColumnDefinition />

                                    </Grid.ColumnDefinitions>

                                    <Grid.RowDefinitions>

                                        <RowDefinition />

                                        <RowDefinition />

                                        <RowDefinition />

                                    </Grid.RowDefinitions>

                                    <TextBlock FontWeight="Bold" x:Name="txtCUST_NAME" Grid.ColumnSpan="2" Text="{Binding cust_name}" />

                                    <TextBlock Foreground="Navy" Grid.ColumnSpan="3" Grid.Row="1" Margin="10,0,0,0" Text="{Binding address}" />

                                    <TextBlock Foreground="Navy" Grid.Column="0" Grid.Row="2" Margin="10,0,0,0" Text="{Binding city}" />

                                    <TextBlock Foreground="Navy" Grid.Column="1" Grid.Row="2" Margin="0" Text="{Binding state}" />

                                    <TextBlock Foreground="Navy" Grid.Column="2" Grid.Row="2" Margin="-20,0,0,0" Text="{Binding zipcode}" />

                                </Grid>

                            </DataTemplate>

                        </telerikPresentation:RadComboBox.ItemTemplate>

                    </telerikPresentation:RadComboBox>

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 25 Feb 2010 Link to this post

    Hello Jon,

    When the control is not Editable (IsEditable=false) you have to type the complete text of the item in order to select it when the drop-down is closed. When IsEditable = true, the autocomplete should select partial matches (without the need to type the complete text) even if the dropdown is closed.

    Greetings,
    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 25 Feb 2010 Link to this post

    In my code.. if I set IsEditable = true.. the combo box show the object it's bound to... and nothing else

    "   Object.Customers"

    The ItemTemplate doesn't appear to work and the autocomplete does not work...

    Any ideas?

    thanks again
  5. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Feb 2010 Link to this post

    Hi Jon,

    I just noticed that you are using the standard TextSearch.TextPath attached property. Please, try with telerik:TextSearch.TextPath - this should fix the problem. We will make sure that the control works with both attached properties in one of the upcoming builds.

    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.
  6. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 26 Feb 2010 Link to this post

    thanks
  7. Ashish
    Ashish avatar
    5 posts
    Member since:
    Aug 2010

    Posted 17 Aug 2010 Link to this post

    Hello,

    I found that the auto-complete feature selects the first partial match.

    In my application, if a user types "A", all items starting with "A" should get listed and not the first item starting with "A" should get selected.

    I am essentially looking for autocomplete + filtering kind of thing.

    Is that possible with telerik wpf combo box ?

    Please let me know

    Thanks,
    Ashish
  8. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 20 Aug 2010 Link to this post

    Hello Ashish,

    Thank you for your participation in the conversation.

    This behaviour of the autocomplete of the ComboBox is by design. You can find more information about autocomplete feature of the ComboBox in this help article and for filtering you can refer to this one.

    If you need further help please let us know.

    Kind regards,
    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
  9. Ashish
    Ashish avatar
    5 posts
    Member since:
    Aug 2010

    Posted 20 Aug 2010 Link to this post

    Thanks,

    I will give it a try and will let you know if I have any issues.

    Thanks once again,
    Ashish
Back to Top
UI for WPF is Visual Studio 2017 Ready