If you suffer the pain of using the ASP.NET Development Server (Cassini) and would like an alternative take a look at this post. The full download is available here.
IIS Express 7.5 Improves ASP.NET Development
Reply
Mike’s post provided me with a very useful solution.
I have been using the CallMethodAction behavior to call specific methods when an event is raised. The CallMethodAction can call either:
I had used the first option a couple of times quite successfully but had difficulty getting the second option to work using the DisplayDateChanged event for a DatePicker control. That was until I came across this post which provided me with the necessary pointers to get my DisplayDateChanged event to work. I just needed to ensure:
So my markup code for the DatePicker looks like this:
<telerik:RadDatePicker .... >
<i:Interaction.Triggers>
<i:EventTrigger EventName="DisplayDateChanged">
<ei:CallMethodAction MethodName="SetRadioButtons"
TargetObject="{Binding}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:RadDatePicker>
And the ViewModel code for my SetRadioButtons method is declared as:
public void SetRadioButtons(object sender, CalendarDateChangedEventArgs e)