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

TextSearch.TextPath in Grid

1 Answer 97 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Christoffer
Top achievements
Rank 1
Christoffer asked on 16 Aug 2011, 09:40 AM
Everything is working correct except the TextSearch.TextPath who doesn't seem to work at all,
if I write something it doesn't jump between the items in my ComboBox. What's wrong?

<
telerik:GridViewDataColumn DataMemberBinding="{Binding tGRSUnit.Name}"
                                                IsFilterable="True"
                                                Header="GRS Unit">
                        <telerik:GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding tGRSUnit.Name}" />
                                    <TextBlock Text=" / " />
                                    <TextBlock Text="{Binding tGRSUnit.Code}" />
                                </StackPanel>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellTemplate>
                        <telerik:GridViewColumn.CellEditTemplate>
                            <DataTemplate>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ViewModel}, Path=tGrsUnitList}"
                                                     SelectedItem="{Binding tGRSUnit, Mode=TwoWay}"
                                                     IsDropDownOpen="True" telerik:TextSearch.TextPath="Name">
                                    <telerik:RadComboBox.ItemTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Text="{Binding Name}" />
                                                <TextBlock Text=" / " />
                                                <TextBlock Text="{Binding Code}" />
                                            </StackPanel>
                                        </DataTemplate>
                                    </telerik:RadComboBox.ItemTemplate>
                                </telerik:RadComboBox>
                            </DataTemplate>
                        </telerik:GridViewColumn.CellEditTemplate>
                    </telerik:GridViewDataColumn>

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 22 Aug 2011, 10:00 AM
Hello Christoffer,

You have to set also the IsTextSearchEnabled="True" property. I have tested your scenario and it seems to work as expected. If you still experience the issue, could you please send us your project in order to track down the source of the problem and provide you with solution in a timely manner.

Looking forward to your reply.

Regards,
Konstantina
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
ComboBox
Asked by
Christoffer
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or