I have this Combobox in xaml and I need to clear the selection after an edit cancel or after save.
I tried setting SelectProduct = null but it doesn't seem to work after the first time.
public string SelectedProduct
{
get { return _productName; }
set
{
_productName = value;
OnPropertyChanged("SelectedProduct");
}
}
<syncfusion:ComboBoxAdv Name="ProductComboBox"
VerticalAlignment="Center" Margin="3.5,0,0,0"
AllowMultiSelect="False"
ItemsSource="{Binding ProductsList, Mode=TwoWay}"
SelectedValue="{Binding SelectedProduct, Mode=TwoWay}"
SelectedValuePath="Product1" >
<syncfusion:ComboBoxAdv.ItemTemplate>
<DataTemplate>
<Grid>
<StackPanel>
<TextBlock Margin="0"
HorizontalAlignment="Stretch"
VerticalAlignment="Top"
Text="{Binding Product1}"
TextTrimming="CharacterEllipsis"
TextWrapping="NoWrap" />
</StackPanel>
</Grid>
</DataTemplate>
</syncfusion:ComboBoxAdv.ItemTemplate>