MVC5 Classic
Change the Start Date

By default, the Day view of the wijeventscalendar starts with the current date. You can change the date using the selectedDate option.

  1. Create an ASP.NET MVC  Wijmo application.
  2. In the Solution Explorer, expand the Views | Shared folder and double-click _Layout.cshtml to open the file.
  3. After the last closing </script> tag  in the references, enter the following jQuery script to initialize the wijeventscalendar widget and set the selectedDate option.
    <script type="text/javascript">
            $(document).ready(function () {
                $("#eventscalendar").wijevcal({
                    selectedDate: new Date(2015, 11, 21)
                });
            });
           </script>
    
  4. When you run the application, the events calendar will look similar to the following image.

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback