This question is locked. New answers and comments are not allowed.
I use the build 2009.2.812. I have an attached behavior to handle the RadComboBox.SelectionChanged event to implement command and command parameter binding like this:
<telerik:RadComboBox x:Name="rcbActionResponse"
ItemsSource="{Binding ActionResponseLookup}" DisplayMemberPath="StdActionDescription" SelectedValuePath="StdActionID"
Behavior:SelectionChanged.CommandParameter="{Binding SelectedItem, ElementName=rcbActionResponse}
Behavior:SelectionChanged.Command="{Binding ActionChangedCommand}"/>
in constuctor of the viewmodel:
ActionChangedCommand = new DelegateCommand<object>(ActionChanged);
private void ActionChanged(object arg)
{
//logic to handle SelectionChanged event, expect arg is the current selected item of the RadComboBox
}
While I noticed the ActionChanged method was always fired before the property changed callback of the attached property CommandParameter - that make the arg parameter is not the current selected item but the old selected item
Any idea of this problem?
<telerik:RadComboBox x:Name="rcbActionResponse"
ItemsSource="{Binding ActionResponseLookup}" DisplayMemberPath="StdActionDescription" SelectedValuePath="StdActionID"
Behavior:SelectionChanged.CommandParameter="{Binding SelectedItem, ElementName=rcbActionResponse}
Behavior:SelectionChanged.Command="{Binding ActionChangedCommand}"/>
in constuctor of the viewmodel:
ActionChangedCommand = new DelegateCommand<object>(ActionChanged);
private void ActionChanged(object arg)
{
//logic to handle SelectionChanged event, expect arg is the current selected item of the RadComboBox
}
While I noticed the ActionChanged method was always fired before the property changed callback of the attached property CommandParameter - that make the arg parameter is not the current selected item but the old selected item
Any idea of this problem?