<telerik:RadComboBox x:Name="notetemplate"
IsEnabled="{Binding IsNoteTypeEnabled, Mode=TwoWay}"
ItemsSource="{Binding FilteredNoteTemplates, Mode=TwoWay}"
DisplayMemberPath="NoteTypeKey"
SelectedValuePath="NoteTemplateId"
SelectedValue="{Binding NoteTemplateId, Mode=TwoWay}"
Command="{Binding NoteTemplateCommand}"
HorizontalAlignment="Stretch"
Style="{StaticResource McRadComboBoxStyle}"
TabIndex="2"
ClearSelectionButtonVisibility="Visible" ClearSelectionButtonContent="Clear"
/>
I am using MVVM Pattern :
private
Guid _noteTemplateId;
public Guid NoteTemplateId
{
get
{
if (_noteTemplateId == Guid.Empty)
{
Narrative =
string.Empty;
}
NotifyPropertyChanged(
"Narrative");
return _noteTemplateId;
}
set
{
_noteTemplateId =
value;
}
}
Onselection of clear button it should return GUID.Empty but all the time it return pervious selected value. so plese let me know how can we implement my logic.