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.
Unfortunately, activation email could not send to your email. Please try again.

How to customize the cells in different views (Month, week, day etc) ?

The following steps shows the way to customize the scheduler cells in different views (Month, week, day etc.) and to highlight the current date column cells.

Step 1:  Create a scheduler cell template sample with multiple resources and refer the required scripts and stylesheets to it by referring the following link.

 Online Sample Link: http://js.syncfusion.com/demos/web/#!/azure/schedule/template/cell

Step 2: Include an additional field namely “Type” which holds two values namely present and absent within the owner dataSource as shown below,  

JavaScript

 

Step 3: Define the create event mapped to the event handler function namely currentDay which contains the code to highlight the current date column cells. The following code example shows the logic.

 

Step 3: Also, define the actionComplete event which gets triggered on completion of every successful scheduler action. Call the function currentDay on the successful completion of specific actions such as view and date navigation as depicted in the below code example.

 

Step 4: The following template code can be used to customize the scheduler cells based on the resource name and type, view, day and date.

 

Sample Link: http://jsplayground.syncfusion.com/bzmnu3fa

Step 5: Run the above sample and the customized week view cells will be seen as shown below.

 Figure 1: Scheduler with customized week view cells.

Article ID: Published Date: Last Revised Date: Platform: Control:
6966 07/01/2016 07/01/2016 JavaScript ejSchedule
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.