- Home
- Forum
- Angular - EJ 2
- different workHours by resource
different workHours by resource
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.
SIGN IN To post a reply.
9 Replies
KK
Karthigeyan Krishnamurthi
Syncfusion Team
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
CH
chevron
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!
HB
Hareesh Balasubramanian
Syncfusion Team
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
AM
amrutha
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
KK
Karthigeyan Krishnamurthi
Syncfusion Team
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
CH
chevron
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 !
HB
Hareesh Balasubramanian
Syncfusion Team
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
CH
chevron
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 !
VD
Vinitha Devi Murugan
Syncfusion Team
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
SIGN IN To post a reply.
- 9 Replies
- 5 Participants
-
CH chevron
- Jul 16, 2019 08:57 AM UTC
- Oct 24, 2019 06:58 AM UTC