This is a migrated thread and some comments may be shown as answers.

AppointmentsPanel for WeekView and MounthView side by side

5 Answers 99 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Romain
Top achievements
Rank 1
Romain asked on 27 Jul 2016, 03:25 PM

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,

5 Answers, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 29 Jul 2016, 09:57 AM
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.
0
Romain
Top achievements
Rank 1
answered on 17 Aug 2016, 09:54 AM

Hi Kalin,

[quote]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.[/quote]

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).
0
Kalin
Telerik team
answered on 22 Aug 2016, 08:11 AM
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.
0
Accepted
Kalin
Telerik team
answered on 22 Aug 2016, 02:46 PM
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.
0
Romain
Top achievements
Rank 1
answered on 22 Aug 2016, 03:13 PM

Hi Kalin,

This, indeed, solves the problem.

Thank you for your help.

Tags
ScheduleView
Asked by
Romain
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Romain
Top achievements
Rank 1
Share this question
or