Bug when drilling down to day view from week view

5 posts, 0 answers
  1. Myles
    Myles avatar
    13 posts
    Member since:
    May 2012

    Posted 03 Oct 2012 Link to this post

    We have noticed some strange behavior when drilling down to a day view whilst in a week view.  The delegate attached to the VisibleRangeChangedCommand sometimes fires twice.  We connect the command up in the ScheduleView XAML as follows:

    VisibleRangeChangedCommand="{Binding VisibleRangeChanged}"
    VisibleRangeChangedCommandParameter="{Binding VisibleRange, RelativeSource={RelativeSource Self}}"    

    The delegate is attached to the command in the view model constructor:

    this.VisibleRangeChanged = new DelegateCommand(this.VisibleRangeExecuted, (param) => true);

    The problem doesn't exist when drilling into day view from a month view definition.  It only happens intermittently when drilling down into a day view from a week view definition.

    Looks like a bug to me.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 05 Oct 2012 Link to this post

    Hello Myles,

    This is a known issue which is already logged in our PITS. You can vote for it and track its progress here.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Myles
    Myles avatar
    13 posts
    Member since:
    May 2012

    Posted 10 Oct 2012 Link to this post

    Is there a known work around until the bug is fixed?  We have logic that randomly gets executed twice due to this.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Oct 2012 Link to this post

    Hi Myles,

    We are not aware of any workaround you can use in this case.

    We are sorry for the inconvenience.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Myles
    Myles avatar
    13 posts
    Member since:
    May 2012

    Posted 11 Oct 2012 Link to this post

    I've found a fairly crude hack:

            private void radScheduleMovements_VisibleRangeChanged(object sender, EventArgs e)
            {
                var range = (sender as RadScheduleView).VisibleRange;
                var dateSlot = (sender as RadScheduleView).MouseOverSlot;


                //Prevent first event firing when clicking on day slot header in month view (where the date header is in a
                //different month e.g Display is for month of September.  Click on day header for 31st August.  Event fires
                //twice.  One for change of month and one for change of day.  Known issue with Telerik ScheduleView control.)
                if (dateSlot != null)
                {
                    if (range.End != dateSlot.End && range.Start != dateSlot.Start) return;
                }


                ViewModel.VisibleRangeExecuted(range);
            }
Back to Top
DevCraft banner