Hello,
I have a question regarding autocompletebox component. I would like to display an icon right at the cell textbox in GridView if the entered value is not present in the itemsource. Can one solve this over binding? Which is the best way to do that?
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate >
<telerik:RadAutoCompleteBox DisplayMemberPath="Name"
TextSearchMode="Contains"
SearchText="{Binding Path=Name, Mode=TwoWay}"
AutoCompleteMode="Suggest"
SelectionMode="Single"
VerticalAlignment="Center"
BoxesItemStyle="{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate="{StaticResource
RadAutoCompleteBoxNoResultsContentTemplate}"
NoResultsContent="{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource="{Binding Path=DataContext.Project.Names,
RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="LostFocus">
<i:InvokeCommandAction
Command="{Binding RelativeSource={RelativeSource FindAncestor,
AncestorType=UserControl},
Path=DataContext.NewNameEnteredCommand}"
CommandParameter="{Binding Path=.}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:RadAutoCompleteBox>
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>