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

AutoComplete does not work unless dropdown is open

7 Answers 167 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 24 Feb 2010, 05:36 PM
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>

7 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 25 Feb 2010, 11:15 AM
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.
0
Jon
Top achievements
Rank 1
answered on 25 Feb 2010, 08:51 PM
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
0
Accepted
Valeri Hristov
Telerik team
answered on 26 Feb 2010, 09:32 AM
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.
0
Jon
Top achievements
Rank 1
answered on 26 Feb 2010, 12:03 PM
thanks
0
Ashish
Top achievements
Rank 1
answered on 17 Aug 2010, 09:39 PM
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
0
Konstantina
Telerik team
answered on 20 Aug 2010, 02:26 PM
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
0
Ashish
Top achievements
Rank 1
answered on 20 Aug 2010, 02:30 PM
Thanks,

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

Thanks once again,
Ashish
Tags
ComboBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
Jon
Top achievements
Rank 1
Ashish
Top achievements
Rank 1
Konstantina
Telerik team
Share this question
or