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
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
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).
We will check the attachment and will get back to you as soon as possible.
Regards,
Kalin
Telerik by Progress
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
Hi Kalin,
This, indeed, solves the problem.
Thank you for your help.