Prevent Date Navigation in ASP.NET MVC Scheduler
By default, the Scheduler navigates to a different date when the user clicks a date in the header or in the Month view. You can prevent this navigation by removing the e-navigate CSS class from the date header and month view cells inside the RenderCell event, as shown in the following code example.
In the example below, the onRenderer handler checks the elementType of the rendered cell. When the cell is a dateHeader (the day labels in the Day, Week, and Work Week views) or a monthCells cell (each day cell in the Month view), the e-navigate class is removed from all of its child nodes. Without this class, the click handler that performs date navigation is not bound to those cells, so the click is effectively a no-op.
NOTE
Removing the
e-navigateclass disables navigation on the date header and Month view cells only. To also disable the Previous, Next, and Today toolbar buttons, set theShowHeaderBartoolbar configuration, or handle theNavigatingevent and cancel the action.