This is a migrated thread and some comments may be shown as answers.

$("#scheduler").data('kendoScheduler') is undefined

1 Answer 217 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
asif
Top achievements
Rank 1
asif asked on 22 Jun 2016, 07:58 AM

this is my scheduler code

 <div id="scheduler" style="height:450px; overflow-y:auto;"></div>
                        <script>
                            $("#scheduler").kendoScheduler({
                                date: new Date("2013/6/6"),
                                timezone: "Etc/UTC",
                                views: [
                                  "day",
                                  "week",// a view configuration can be a string (the view type) or an object (the view configuration)
                                  { type: "month", selected: true }, // the "week" view will appear as initially selected
                                  "agenda",
                                  "timeline"
                                ],
                                dataSource: dsSchedule
 
                                
 
                            });
                            var dsSchedule = new kendo.data.SchedulerDataSource({
                                transport: {
                                    read: {
                                        url: '/Projects/GetProject',
                                        dataType: 'json',
                                    },
                                },
                                schema: {
                                    model: {
                                        id: 'taskId',
                                        fields: {
                                            taskId: { from: "TaskID", type: "number" },
                                            title: { from: "Title", defaultValue: "No title", validation: { required: true } },
                                            start: { type: "date", from: "Start" },
                                            end: { type: "date", from: "End" },
                                            description: { from: "Description" },
                                            recurrenceId: { from: "RecurrenceID" },
                                            recurrenceRule: { from: "RecurrenceRule" },
                                            recurrenceException: { from: "RecurrenceException" },
                                            isAllDay: { type: "boolean", from: "IsAllDay" }
                                        },
                                    },
                                },
                            });
                        </script>

 

when i access schedular using $("#scheduler").data('kendoScheduler') it gives error undefined

 

1 Answer, 1 is accepted

Sort by
-1
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 22 Jun 2016, 04:51 PM
Hello Asif,

Please take a look at this Kendo UI Dojo by Progress which illustrates how to make a reference to a Kendo Scheduler.

Also, please take a look at this documentation pertaining to widgets unavailable or undefined.  Make sure there are not multiple script reference to jQuery.  

Hope this clears things.

Regards,
Patrick
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Scheduler
Asked by
asif
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Share this question
or