TextSearch.TextPath in Grid

2 posts, 0 answers
  1. Christoffer
    Christoffer avatar
    1 posts
    Member since:
    Aug 2011

    Posted 16 Aug 2011 Link to this post

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

    Posted 22 Aug 2011 Link to this post

    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 >>

  3. DevCraft banner
Back to Top