Resources on the left side of the schedule

Hello,

I am trying to achieve the same result as shown on this link. http://jsplayground.syncfusion.com/gc4fwvst

I would like to set up the month view of the SfSchedule just like in the example above, but just can't figure out how.

Is there a possibility to set up the resources the same way in WPF? Or are there any alternatives i should use?

3 Replies

DY Deivaselvan Y Syncfusion Team August 15, 2018 11:29 AM UTC

Hi Mark,

Thanks for contacting Syncfusion support.

We have analyzed your Resources requirement in schedule by using the shared information.

As per the implementation of SfSchedule in wpf, Resources will be arranged in left (Month and Timeline view) and Top (Days view) side of schedule. In addition, for each resource separate calendar will be created to manage the resources appointment separately.

We have prepared a demo for the same and please find the sample from below link.

Sample: ScheduleResources

Days View
  Month view
 
Timeline view
 

Please refer the below user guide link for more details.  

https://help.syncfusion.com/wpf/sfschedule/resources 

Also, you can customize style of Resources in each schedule view and please find the demo sample for the same.  
Deivaselvan 



MA Mark August 16, 2018 01:15 PM UTC

Dear Deivaselvan,

Thank you for your time and help.

The only schedule type that fits my purposes is the TimeLine type. I would need multiple days shown however, so i proceeded and added the ScheduleDateRange to my schedule. While the result looks just like how I wanted it to be, I came across something else. When creating an appointment of a duration less than 2 days, everything looks fine, but once the appointments duration is more than 2 days, the appointments marker gets out of the schedule, as shown on the picture below. Also, at this point, resizing is not working.


So Room1 has an appointment from 2018. 08. 16. 11:00 to 2018. 08. 17. 12:00, which works just as expected. Whereas Room2 has an appointment from 2018. 08. 16. 11:00 to 2018. 08. 18. 11:00 .

My XAML for the calendar looks like this:
     
     <syncfusion:SfSchedule Name="schedule" 
                                             FirstDayOfWeek="Monday" 
                                             TimeInterval="OneHour" 
                                             ScheduleType="TimeLine" 
                                             Resource="Rooms" 
                                             EnableAutoFormat="False" 
                                             MajorTickTimeFormat="hh tt" 
                                             ShowNonWorkingHours="False" 
                                             WorkStartHour="11" 
                                             WorkEndHour="13" >

                                <syncfusion:SfSchedule.ScheduleResourceTypeCollection >
                                    <syncfusion:ResourceType TypeName="Rooms">
                                        <syncfusion:Resource  DisplayName="Room1" ResourceName="Room1"/>

                                        <syncfusion:Resource  DisplayName="Room2" ResourceName="Room2"/>

                                        <syncfusion:Resource  DisplayName="Room3" ResourceName="Room3"/>
                                    </syncfusion:ResourceType>
                                </syncfusion:SfSchedule.ScheduleResourceTypeCollection>
                            </syncfusion:SfSchedule>

And in the .cs I added:

    ObservableCollection<DateTime> selectedDates = new ObservableCollection<DateTime>();

            selectedDates.Add(DateTime.Today);
            selectedDates.Add(DateTime.Today.AddDays(1));
            selectedDates.Add(DateTime.Today.AddDays(2));
            selectedDates.Add(DateTime.Today.AddDays(3));
            selectedDates.Add(DateTime.Today.AddDays(4));

            schedule.ScheduleDateRange = selectedDates;


Best regards,
Mark


DY Deivaselvan Y Syncfusion Team August 20, 2018 07:08 AM UTC

Hi Mark,

We have checked with the provided information and we are able to reproduce the issue “Appointment is not rendered and resized properly in time line view when non-working hours is collapsed”. We have logged issue report for this, we will fix the issue and this fix will be included in our upcoming Volume 3 main release which is expected to be available by month of September 2018. We appreciate your patience until then. 

Regards,
Deivaselvan 


Loader.
Up arrow icon