VisibleRangeChangedCommand excution

1 posts, 0 answers
  1. samin
    samin avatar
    27 posts
    Member since:
    Feb 2011

    Posted 21 May 2012 Link to this post

    Hi, I think there is a problem in VisibleRangeChange command.
    I implemented my project in MVVM but when I trace it during it runs , at first this command executed for twice. loading time takes long time. but in other execution every thing is ok. Is it normal ? or it's a bug?

    <telerik:RadScheduleView DataContext="{StaticResource CalendarViewerViewModel}" HorizontalAlignment="Left" FontFamily="Tahoma"
                                   AppointmentsSource="{Binding Path=Events,Mode=TwoWay}"
                                   VisibleRangeChangedCommand="{Binding Path=VisibleRangeChanged}"
                                   telerik:StyleManager.Theme="{StaticResource TelerikOfficeBluePersianWrapper}"   VisibleRangeChangedCommandParameter="{Binding Path=VisibleRange, RelativeSource={RelativeSource Self}}"
                                   ActiveViewDefinitionIndex="0" Name="radScheduleView1" VerticalAlignment="Top">

    private ICommand visibleRangeChanged;
           public ICommand VisibleRangeChanged
                   return this.visibleRangeChanged;
                   this.visibleRangeChanged = value;
           private void VisibleRangeExecuted(object param)
               IDateSpan dateSpan = param as IDateSpan;
               _dataProvider.LoadTimeSlicesAsync(new DateTimeRange(dateSpan.Start, dateSpan.End));
           private bool CanVisibleRangeCanExecuted(object param)
               return param != null;

Back to Top