New to Telerik UI for ASP.NET Core? Download free 30-day trial

Events

The MultiViewCalendar exposes Change() and Navigate() events that you can handle.

Handling by Handler Name

The following example demonstrates how to subscribe to events by a handler name.

        @(Html.Kendo().MultiViewCalendar()
          .Name("MultiViewCalendar")
          .Events(e => e
                .Change("calendar_change")
                .Navigate("calendar_navigate")
          )
        )
        <script>
        function calendar_navigate() {
            // Handle the navigate event.
        }

        function calendar_change() {
            // Handle the change event.
        }
        </script>
    <kendo-multiviewcalendar name="multiviewcalendar" 
                             on-change="calendar_change" 
                             on-navigate="calendar_navigate">
    </kendo-multiviewcalendar>
    <script>
        function calendar_navigate() {
            // Handle the navigate event.
        }

        function calendar_change() {
            // Handle the change event.
        }
    </script>

Handling by Template Delegate

The following example demonstrates how to subscribe to events by a template delegate.

  @(Html.Kendo().MultiViewCalendar()
    .Name("MultiViewCalendar")
    .Events(e => e
        .Change(@<text>
          function() {
              // Handle the change event inline.
          }
        </text>)
        .Navigate(@<text>
          function() {
              // Handle the navigate event inline.
          }
          </text>)
    )
  )
  <kendo-multiviewcalendar name="multiViewCalendar"
                           on-change='function() {
                                  //Handle the change event inline.
                           }'
                           on-navigate='function() {
                                  //Handle the navigate event inline.
                           }'>
  </kendo-multiviewcalendar>

Next Steps

See Also

In this article