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

[workWeek]

Thread ID:

Created:

Updated:

Platform:

Replies:

148318 Oct 15,2019 12:50 PM UTC Oct 16,2019 10:48 AM UTC Angular - EJ 2 1
loading
Tags: Schedule
chevron
Asked On October 15, 2019 12:50 PM UTC

Hello,

I have a problem with the "workWeek" property on my scheduler, when trying to use it, i have this error:

Can't bind to 'workWeek' since it isn't a known property of 'ejs-schedule'.

<ejs-schedule #scheduleObj width='100%' height='650px'
            [selectedDate]="selectedDate"
            [eventSettings]="eventSettings"
            [(currentView)]="currentView"
            [group]="group" 
            (popupOpen)="onPopupOpen($event)" 
            (dataBound)="onDataBound($event)"
            (renderCell)="onRenderCell($event)"
            [allowDragAndDrop]="allowDragAndDrop" 
            [allowResizing]="allowResizing" 
            (actionComplete)="onActionComplete($event)"
            (cellClick)="onCellClicked($event)" 
            (eventClick)="onEventClicked($event)" 
            (resizeStop)="onResizeEventEnd($event)"
            (dragStop)="onDragDropEnd($event)"
            [cssClass]="'schedule-availability'"
            (eventRendered)="onEventRendered($event)"
            [firstDayOfWeek]="firstDayOfWeek"
            [workWeek]="["Tuesday","Thursday","Friday","Saturday"]"
>

Have you got an idea ? 

Thanks by advance !

Vinitha Devi Murugan [Syncfusion]
Replied On October 16, 2019 10:48 AM UTC

Hi chevron, 
 
Syncfusion Greetings. 
 
The reported issue was because you wrongly defined the workweek as a property that triggers the reported issue. By using view property, we prepared the sample below to adjust the working days in the workweek..  
 
 
<e-views> 
      <e-view option='Day'></e-view> 
      <e-view option='Week'></e-view> 
      <e-view option='WorkWeek' [workDays]="[2,4,5,6]"></e-view> 
    </e-views> 
 
Kindly refer the below ug and sample link. 
 
Kindly try the above sample, if you have any concerns please revert us back for further assistance. 
 
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