I have a RadGridView, in the first column is an AutoCompleteBox for searching names. I will search name and paste in to the same column.
I have build the AutoCompleteBox in RadgridView.CellEditTemplate like this:
<
telerik:RadAutoCompleteBox
DisplayMemberPath
=
"Name"
TextSearchMode
=
"Contains"
TextSearchPath
=
"Name"
SearchText
=
"{Binding Path=Name, Mode=TwoWay}"
AutoCompleteMode
=
"Suggest"
SelectionMode
=
"Single"
BoxesItemStyle
=
"{StaticResource RadAutoCompleteBoxStyle}"
NoResultsContentTemplate
=
"{StaticResource RadAutoCompleteBoxNoResultsContentTemplate}"
NoResultsContent
=
"{x:Static resources:Translations.lbl_NoMatches}"
ItemsSource
=
"{Binding Path=DataContext.Project.Customers, RelativeSource={RelativeSource AncestorType=telerik:RadGridView}}"
>
But i always get error "System.Windows.Data Error: 26 : ItemTemplate and ItemTemplateSelector are ignored for items already of the ItemsControl's container type; Type='RadWatermarkTextBox'", if i type in the column. DisplayMemberPath="Name" and SearchText="{Binding Path=Name, Mode=TwoWay}" ara in conflict. Can sameone help me?
Thanks in advance.