This question is locked. New answers and comments are not allowed.
                        
                        Hi,
I'm creating this new post from http://www.kendoui.com/forums.aspx/kendo-ui-web/scheduler/extending-agenda-view-to-show-whole-month-or-above-.aspx
Since I'm using the razor part I would like to know how to initialize the widget correctly. I've tried to put it together with the snippets from the above post but I cannot get it to work. Perhaps I'm missing something. Does anyone know how to do this properly?
This is what I have and it's not working:
 
 
 
                                I'm creating this new post from http://www.kendoui.com/forums.aspx/kendo-ui-web/scheduler/extending-agenda-view-to-show-whole-month-or-above-.aspx
Since I'm using the razor part I would like to know how to initialize the widget correctly. I've tried to put it together with the snippets from the above post but I cannot get it to work. Perhaps I'm missing something. Does anyone know how to do this properly?
This is what I have and it's not working:
<script type="text/javascript">    var CustomAgenda = kendo.ui.AgendaView.extend({        endDate: function () {            var date = kendo.ui.AgendaView.fn.endDate.call(this);            return kendo.date.addDays(date, 30);        }    });    kendo.ui.Scheduler.fn.options.views = [{ type: "CustomAgenda", title: "My View" }];</script>@(Html.Kendo().Scheduler<Gusto.Web.Models.Scheduler.TaskViewModel>()    .Name("scheduler")