I have a GridViewDataColumn, in the first column is an AutoCompleteBox for searching names in a ObservablceCollection.
I have build the RadGridView with AutoCompleteBox like this:
<telerik:GridViewDataColumn DataMemberBinding="{Binding Name}" Width="*" IsReadOnly="False">
<telerik:GridViewDataColumn.CellTemplate>
<DataTemplate DataType="{x:Type detailViews:MyViewModel}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<telerik:RadAutoCompleteBox DisplayMemberPath="Name"
TextSearchMode="Contains"
WatermarkContent="Suche..."
AutoCompleteMode="Suggest"
SelectionMode="Single"
ItemsSource="{Binding Project.Names, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}" />
<telerik:RadButton Grid.Column="1" HorizontalAlignment="Right" Style="{StaticResource RadImageButton}" ToolTip="Search"
Command="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=UserControl}, Path=DataContext.SearchFromDatabaseCommand}"
CommandParameter="{Binding Path=.}">
<Image Grid.Column="1" Source="{framework:ApplicationImage image}" Width="16" Height="16" />
</telerik:RadButton>
</Grid>
</DataTemplate>
</telerik:GridViewDataColumn.CellTemplate>
</telerik:GridViewDataColumn>
My Problem is that the items of ObservableCollection not binded in autocompletebox. Is it possible with my type of implemetation of the AutoCompleteBox in the GridViewDataColumn?