We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

different workHours by resource

Thread ID:

Created:

Updated:

Platform:

Replies:

145968 Jul 16,2019 08:57 AM UTC Oct 24,2019 06:58 AM UTC Angular - EJ 2 9
loading
Tags: Schedule
chevron
Asked On July 16, 2019 08:57 AM UTC

Hello,

i'd like to personnalize workHours by date/day and resources in TimeLine Group mode, something like that :

public categoryDataSource: Object[] = [
{ text: 'Nancy',
          id: 1, groupId: 1,
          color: '#df5286',
          WORKHOURS: (Sunday, 10, 14}
        }
        { text: 'Steven',
          id: 1, groupId: 1,
          color: '#df5286',
          WORKHOURS: (AllDay, 7, 17}
        }
        { text: 'Robert',
          id: 1, groupId: 1,
          color: '#df5286',
          WORKHOURS: (Monday, Tuesday, Wednesday, 7, 17}
        }

Can you tell me how i could do that ?

Thanks by advance.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On July 17, 2019 03:27 AM UTC

Hi Chevron, 
 
Syncfusion greetings. 
 
We can achieve your requirement using workDays, startHour and endHour properties and kindly refer the below links. 
 
Regards, 
Karthi 


chevron
Replied On July 19, 2019 12:26 PM UTC

Hello,

Thanks for you answer ! 

I have another question. I'd like to know how i could manage the case when the workhours are not the same on each day off the week. It should be managed by dates. For example:

public categoryDataSource: Object[] = [
{ text: 'Nancy',
          id: 1, groupId: 1,
          color: '#df5286',
          WORKHOURS: ('19/07/2019': 10:00, 14:00, '20/07/2019': 00:00, 08:30, '21/07/2019': 12:30, 14:20}
        }

Thanks by advance!

Hareesh Balasubramanian [Syncfusion]
Replied On July 22, 2019 03:51 PM UTC

Hi Chevron,  
  
Thanks for your update.  
  
We can achieve your requirement using  setWorkHours method and kindly refer the below link.  
  
Regards, 
Hareesh 


amrutha
Replied On August 26, 2019 01:47 AM UTC

Hi I also have the same query but I have the days not dates.

like Monday - 7 to 11

Is it possible to pass days  for setWorkHours or how to configure dates from days,

Regards,
Amrutha



Karthigeyan Krishnamurthi [Syncfusion]
Replied On August 26, 2019 10:58 AM UTC

Hi Amrutha, 
 
Syncfusion greetings. 
 
Currently there is no option and we consider your requirement as feature which can be tracked from the below link. It will be implemented in any one of our release. 
 
Regards, 
Karthi 


chevron
Replied On September 26, 2019 03:56 PM UTC

Hello,

I'd like to know how to catch grouped events in this case :



I'm using this: (eventRendered)="onEventRendered($event)"
But when loading the scheduler, only the parent event is catched (formation) and not the other (congés)

Do you know how to do ?

Thanks !




Hareesh Balasubramanian [Syncfusion]
Replied On September 27, 2019 11:05 AM UTC

Hi Chevron, 
 
Thanks for your update. 
 
By default, eventRendered event won’t trigger for the appointments present within the more indicator popup. You can make it to trigger for all the appointments by enabling the rowAutoHeight property which will adjust the work cells height based on the appointments rendered within the cell. 
 
Regards, 
Hareesh 


chevron
Replied On October 23, 2019 12:14 PM UTC

Hello,

I'd like to know how is it possible to add image and text under the resource name, like this :



Thanks !

Vinitha Devi Murugan [Syncfusion]
Replied On October 24, 2019 06:58 AM UTC

Hi chevron, 
 
Thanks for your update. 
 
You can customize the resource header bar using resourceHeaderTemplate option of the scheduler for the same we have prepared the below sample.  
 
 
  <ng-template #resourceHeaderTemplate let-data> 
        <div class='template-wrap'> 
          <div class="{{getEmployeeImage(data)}}"></div> 
          <div class="resource-details"> 
            <div class="resource-name">{{getEmployeeName(data)}}</div> 
            <div class="resource-designation">{{data.resourceData.designation}}</div> 
          </div> 
        </div> 
      </ng-template> 
 
Kindly refer below API and UG link. 
 
Regards, 
M.Vinitha devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon