Datepicker Selection changed event with MVVM

1 posts, 0 answers
  1. rajesh
    rajesh avatar
    2 posts
    Member since:
    Sep 2012

    Posted 14 Nov 2011 Link to this post

     I am facing a small issue with 'Telrik Datepicker Selection changed event', code behind it all work perfectly, but when i use following code with MVVM pattern, SelectionChanged  event  not at all firing. but the same giving result with Button Element, any thing i need more here to get result from Telrik Datae Picker


            public RelayCommand<Telerik.Windows.Controls.SelectionChangedEventArgs> DateSelectionCommand
                private set;
    DateSelectionCommand = new RelayCommand<Telerik.Windows.Controls.SelectionChangedEventArgs>(ShowMachineTime);


    <telerik:RadDatePicker Grid.Column="1" Height="23"   Name="dpCurrentDate" VerticalAlignment="Center" HorizontalAlignment="Right" Width="126">
                        <i:EventTrigger EventName="SelectionChanged">
                            <E2C:EventToCommand  Command="{Binding DateSelectionCommand}" ></E2C:EventToCommand>
    <Button   Grid.Column="1"  Grid.Row="0"   x:Name="addButton"  Content="Add New" Width="100"  Height="30" HorizontalAlignment="Left" Command="{Binding DateSelectionCommand}" />

Back to Top