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.
Step 2: Include an additional field namely “Type” which holds two values namely present and absent within the owner dataSource as shown below,
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.
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:|