AppointmentsPanel for WeekView and MounthView side by side

6 posts, 1 answers
  1. Romain
    Romain avatar
    6 posts
    Member since:
    Jul 2016

    Posted 27 Jul Link to this post

    Hi,

    I'm trying to create a view based on WeekView and with a footer recapulating specials appointments (named Tasks).
    This would look like attached file (ExpectedSchedulerView.png).

    The most handy way would be having 2 RadSchedulerView (classic one on top, lightened MonthView on bottom). But I experiment some issue having two RadSheduleView both visible and with different behaviour.

    A second and cleaner way would be having an other AppointsPanel/TimeRulerLinesPanel in the RadScheduleViewControlTemplate. That way I'm being blocked by encapsulation : Arrange/MeasureOverride throw exception (NullRef) because the new template child isn't properly initialized.

    Then my questions are :

    * Is there a known issue about multiple RadScheduleView ? (I already searched for it but got nothing relevant)
    * Is extending RadScheduleViewControlTemplate a proper solution or is there an easier/cleanier/more efficient one ?

    Thanks,

  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 29 Jul Link to this post

    Hi Romain,

    Thank you for contacting us.

    Using two ScheduleView would be the easiest solution. Currently we are not aware of any issue, so this approach should allow you to achieve the desired.

    As alternative you could try to implement a custom GroupHeaderTemplateSelector - inside of the selector depending on the current date of the GroupHeader you could extract the appointments for that day and display information about them. However you would need implement logic that updates the group headers once the Appointments source changes.

    Hope this helps.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Romain
    Romain avatar
    6 posts
    Member since:
    Jul 2016

    Posted 17 Aug in reply to Kalin Link to this post

    Hi Kalin,

    Kalin said:
    Using two ScheduleView would be the easiest solution. Currently we are not aware of any issue, so this approach should allow you to achieve the desired.

    Unfortunately I get some weird behaviour (see attached project*, just a new Telerik project with two RadScheduleViews) :
    * First : The (below) MonthView doest display apponitments correctly (ridiculous width and horizontal flow).
    * Then : Change the (above) view du Week and slot and appointments disappear (above) while mounthview (bellow) refreshes correctly. + both the week and day view are now displaying only a serie of first day of week (0o).

    Is this an issue I can expect to be corrected soon (looks like it'll be pretty tricky) or should I already look for an alternative ?

    Thanks,

    *Attached files is a zip renamed as gif (sorry for that but this is the only allowed extensions).
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 22 Aug Link to this post

    Hi Romain,

    We will check the attachment and will get back to you as soon as possible.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  6. Answer
    Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 22 Aug Link to this post

    Hello Romain,

    What I can suggest you for such scenarios would be to use the approach demonstrated in the following example (it is SL example but the WPF one is identical):
    http://demos.telerik.com/silverlight/#ScheduleView/TimeBar

    In other words to use two synced separate Appointments collections and everything will work as expected.

    Hope this helps.

    Regards,
    Kalin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  7. Romain
    Romain avatar
    6 posts
    Member since:
    Jul 2016

    Posted 22 Aug Link to this post

    Hi Kalin,

    This, indeed, solves the problem.

    Thank you for your help.

Back to Top
UI for WPF is Visual Studio 2017 Ready