Refresh MinimapSchedule in ScheduleView and TimeBar demo

5 posts, 0 answers
  1. Sergey
    Sergey avatar
    26 posts
    Member since:
    Jun 2012

    Posted 06 Jul 2012 Link to this post

    In the ScheduleView and TimeBar demo MinnimapSchedule doesn't refresh when you move/resize appointment in the MainSchedule. You can trigger refresh if you move the TimeBar slider. Is it done fore performance reasons? How can you force refresh on appointment change?

    MinimapSchedule also doesn't refresh when you click to the left/right of the TimeBar slider to scroll the TimeBar page up/down. How can you enforce refresh on page up/down?
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 11 Jul 2012 Link to this post

    Hi Sergey,

    As to the first issue -  there is a bug in TimelineViewDefinition  - the view is not updated when a new appointment is added. This issue in already logged in our PITS, you can vote and track its progress here.

    As a workaround you can handle AppointmentSaving event of the MainScheduleVIew and manually update the AppointmentsSource of the MinimapScheduleView:

    private void MainSchedule_AppointmentSaving(object sender, Controls.AppointmentSavingEventArgs e)
    {
        var apps = MinimapSchedule.AppointmentsSource;
        MinimapSchedule.AppointmentsSource = null;
        MinimapSchedule.AppointmentsSource = apps;
    }

    Also note that in the demo we have set different AppointmentsSource to both ScheduleViews - you should set only one.

    As to the second question - can you explain it in more details and/or send us a screenshot? Thanks in advance


    Kind regards,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. Sergey
    Sergey avatar
    26 posts
    Member since:
    Jun 2012

    Posted 11 Jul 2012 Link to this post

    The workaround works, thanks!

    I added screenshots to explain the second problem. Notice how in result.png the MinimapSchedule is not updated to reflect changed visible period of the TimeBar.
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 16 Jul 2012 Link to this post

    Hello Sergey,

    Thank you for providing the screenshots.

    We will need some additional time to research this behavior, I will write here as soon as we have a result.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 19 Jul 2012 Link to this post

    Hi Sergey,

    The issue seems more complicated than initially expected. We will need to review and update the whole example, because there are some other issues as well. I am afraid that at the moment we cannot commit to a certain timeframe for this - most probably it will be completed for the Q3 release.

    We are sorry for any inconvenience caused.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner