Resources in SfScheduler

Hello,

How can I use resources from SfSchedule in SfScheduler ?
In SfSchedule we can do this:
<Schedule:SfSchedule Name="Schedule1" ScheduleType="Week" Background="WhiteSmoke" Resource="Doctors" >
    <Schedule:SfSchedule.ScheduleResourceTypeCollection >
        <Schedule:ResourceType TypeName="Doctors">
            <Schedule:Resource   DisplayName="Dr.Jacob John, M.D " ResourceName="Dr.Jacob"/>
            <Schedule:Resource  DisplayName="Dr.Darsy Mascio, M.D" ResourceName="Dr.Darsy"/>
        </Schedule:ResourceType>
    </Schedule:SfSchedule.ScheduleResourceTypeCollection>
</Schedule:SfSchedule>
What is the equivalent of this in SfScheduler ?



10 Replies 1 reply marked as answer

JN Jayaleshwari N Syncfusion Team July 10, 2020 03:53 AM UTC

Hi Dominik ,

 

Thanks for using Syncfusion Products.

 

We have checked the reported query “Resources in SfScheduler” from our end. We have already logged feature report for the same. We will include this enhancement in our upcoming Volume3 main release which is expected to rolled out in the month of September 2020.

 

You can track the feature from our Feedback portal.

Link: https://www.syncfusion.com/feedback/15943/resources-in-sfscheduler

 

We appreciate your patience until then.

 

Regards,

Jayaleshwari N.


Marked as answer

KA Karthikraja Arumugam Syncfusion Team October 5, 2020 12:41 PM UTC

Hi Dominik, 
 
Thank you for your patience. 
 
We are glad to announce that our Essential Studio 2020 Volume 3 Release version 18.3.0.35 is rolled out with “Resource view feature in SfScheduler” and is available for download(nuget.org). 
 
Please refer the following code snippet for the same, 
ObservableCollection<SchedulerResource> schedulerResources = new ObservableCollection<SchedulerResource>(); 
schedulerResources.Add( 
                new SchedulerResource 
                { 
                    Name = "Sophia", 
                    Id = "5001", 
                    Background = Brushes.GreenYellow, 
                    Foreground = Brushes.White 
                }); 
schedulerResources.Add( 
                new SchedulerResource 
                { 
                    Name = "Daniel", 
                    Id = "5002", 
                    Background = Brushes.Blue, 
                    Foreground = Brushes.Black 
                }); 
 
 Schedule.ResourceCollection = schedulerResources; 
 Schedule.ResourceGroupType = ResourceGroupType.Resource; 
 
 
// Adding appointments with resource collection. 
 ScheduleAppointmentCollection scheduleAppointments = new ScheduleAppointmentCollection(); 
  scheduleAppointments.Add( 
                new ScheduleAppointment 
                { 
                    StartTime = new DateTime(2020, 10, 05, 10, 0, 0), 
                    EndTime = new DateTime(2020, 10, 06, 11, 0, 0), 
                    Subject = "Meeting", 
                    ResourceIdCollection = new ObservableCollection<object> { "5001", "5002" } 
                }); 
 
 
We have prepared a sample with resources in Scheduler. In our sample, we have used custom resource collection with resource mapping.  
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.   
  
Regards,       
Karthik Raja A 



DB Dominik Bojdo October 14, 2020 07:16 PM UTC

Hi Karthikraja,

It looks good, but I have another issue. How can I change the height of resources rows in timeline view ? They seems to have fixed height.


SS SaiGanesh Sakthivel Syncfusion Team October 15, 2020 11:20 AM UTC

Hi Dominik,  
  
Thank you for the update. 
 
#Regarding How can I change the height of resources rows in timeline view 
We would like to inform you that the height of the resource rows in the timeline view is based on the VisibleResourceCount property from the TimeLineViewSetting, so you can change the height of the resource rows to the desired height by setting the VisibleResourceCount property. Please refer to the following UG link for your reference. 
 
 
We hope this helps.

Regards,
SaiGanesh Sakthivel
 



DB Dominik Bojdo October 15, 2020 12:34 PM UTC

Hello,

When I try to set VisibleResourceCount for value other than 3 I get NullReferenceException.


KA Karthikraja Arumugam Syncfusion Team October 16, 2020 01:24 PM UTC

Hi Dominik, 
 
Sorry for the inconvenience caused. 
 
We have checked the reported issue with VisibleResourceCount and able to replicate the issue, currently we are checking the same in source level. We will check and update you further details in 2 business days on or before October 20, 2020. We appreciate your patience until then. 
 
Regards, 
Karthik Raja A 



KA Karthikraja Arumugam Syncfusion Team October 20, 2020 01:18 PM UTC

Hi Dominik, 
 
Thank you for your patience. 
 
We have fixed the reported issue with VisibleResourceCount and included the issue fix in our latest weekly nuget package version 18.3.0.42 which is available for download. We regret for the inconvenience caused. 
 
Please get in touch with us if you require any further assistance. 
 
Regards, 
Karthik Raja A 



DB Dominik Bojdo October 21, 2020 08:02 PM UTC

Hello,

I can confirm, it`s fixed :)

Unfortunately I found another problem with AppointmentDropping event. When we have for example two resources: resource1 and resource2 in timeline view and when I drag and drop appointment from resource1 to resource2 and I want to cancel this drop in AppointmentDropping by setting e.Cancel = true it doesn't work. Appointment goes to resource2 - even though it should stay in resource1. I tried this on another views and it`s the same - cancelling doesn't work.


KA Karthikraja Arumugam Syncfusion Team October 22, 2020 02:27 PM UTC

Hi Dominik, 
 
We regret for the inconvenience caused. 
 
The reported issue with appointment dropping event has been already fixed, we will include the issue fix in our upcoming weekly nuget release, which is expected to roll out on October 27, 2020. We appreciate your patience until then. 
 
Regards, 
Karthik Raja A  



KA Karthikraja Arumugam Syncfusion Team October 27, 2020 02:01 PM UTC

Hi Dominik, 
 
Thank you for your patience. 
 
We have fixed the reported issue with AppointmentDropping event and included the issue fix in our latest weekly Nuget package version 18.3.0.44 which is available for download.  
 
Please get in touch with us if you require any further assistance. 
 
Regards, 
Karthik Raja A 


Loader.
Up arrow icon