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

Event template is not getting apply on "IsBlock": true && On Month View .

Thread ID:





148986 Nov 11,2019 06:49 AM UTC Nov 12,2019 12:09 PM UTC React - EJ 2 1
Tags: Schedule
Sudhanshu Jain
Asked On November 11, 2019 07:26 AM UTC

1.When an appointment is having "IsBlock: true ", then our eventTemplate is not getting apply on appointment .Please find details below 
  "instanceId": "16CDCEA3969446E5",
"name": "OP Site Survey",
"startTime": "2019-11-29 10:28:47.0",
"id": "16CDC1A90E99F36D",
"endTime": "2019-11-29 11:28:47.0",
"userId": "16BD4F1D48E790E0",
"type": "unAvailable",
"IsBlock": true

//eventTemplate Method
if(type === 'unAvailable'){

So i found that if we need to apply "IsBlock": true then we have to remove eventTemplate properties then it will take default properties .
Can you suggest some other think that eventTemplate should also apply on "ISBlock": true and block properties should also work for appointment. Means that blocked appointment can not be dragged
and no other appointment can be assigned that IsBlock Time.
2. How can we block time for appointment outside of working hours.Means we should not assign appointment outside of working hours 
So if we have have startTime is 8AM and and endTime is 6 Pm as working hours, then we should not allow to drag appointment outside of working hours .
3.Event Template is not getting apply on Month view .Please find method below .here event template is getting applied on day view and week view.
But not getting applied on Month view 




Please find screenshot below for Month View  .

Please find screenshot for day view

Vinitha Devi Murugan [Syncfusion]
Replied On November 12, 2019 12:09 PM UTC

Hi Sudhanshu, 
Please refer the below sample for all your queries. 

Q1: By default editorTemplate is applicable for isBlock event. Please refer above sample. 

Q2: You can prevent the CRUD operation beyond the workHours by using actionBegin event of the scheduler and same can be available in above sample link. 

Q3: In above sample eventTemplate is applied properly in month view. Please try the above sample and try to reproduce the error in a sample if the problem persists else share your example code / runnable sample (if possible ) to proceed further 
M.Vinitha devi. 


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