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

Cant get KendoScheduler working in my html page

4 Answers 407 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 29 Jul 2013, 09:27 PM
All -

I have included    
     <script type="text/javascript" src="Scripts/jquery_1.9.1.js"></script>
    <script type="text/javascript" src="Scripts/Kendo/kendo.web.min.js"></script>
    <script type="text/javascript" src="Scripts/Kendo/kendo.scheduler.min.js"></script>

but still, the following code would throw error saying the KendoScheduler is not found..
(JavaScript runtime error: Object doesn't support property or method 'kendoScheduler')

All kendo files are from kendoui.web.2013.2.716.open-source release...

Could any one tell me what am i missing?

<div id="scheduler"></div>
$(document).ready(function () {
            $("#scheduler").kendoScheduler({
                date: new Date(),
                dataSource: [
                                {
                                    id: 1,
                                    start: new Date("2013/6/6 08:00 AM"),
                                    end: new Date("2013/6/6 09:00 AM"),
                                    title: "Interview"
                                },
                                {
                                    id: 2,
                                    start: new Date("2013/6/6 08:00 AM"),
                                    end: new Date("2013/6/6 09:00 AM"),
                                    title: "Meeting"
                                }
                           ]
            });
        });

4 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 30 Jul 2013, 08:31 AM
Hello Chris,

The Scheduler declaration is correct.

Individual widget scripts (kendo.scheduler.js) cannot be registered together with a combined script (kendo.web.js). Moreover, this is not necessary.

Also make sure there is only one jQuery instance on the page and the URL is valid.

For more information, please refer to our documentation.

http://docs.kendoui.com/getting-started/javascript-dependencies

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Chris
Top achievements
Rank 1
answered on 30 Jul 2013, 05:50 PM
I did try with just ...web.min.js file, it wouldnt find KendoScheduler. Out of desperate measures, I included the Scheduler file as well.
Anyway, The file references are correct. if the declaration is correct as well, then the only posible reason could be, the current version does not have the scheduler api's defined. I downloaded kendoui.web.2013.2.716.open-source from the website.. Is there a higher version of this?
I did search for the string "kendoScheduler" in Kendo.web.min.js file.. i could not find any result.
0
Chris
Top achievements
Rank 1
answered on 30 Jul 2013, 08:37 PM
Your opensoource download did not have the kendoScheduler  kendoui.web.2013.2.716.open-source where as ur kendoui.complete.2013.2.716.trial had it..
0
Dimo
Telerik team
answered on 31 Jul 2013, 07:25 AM
Hi Chris,
 

>> Your opensoource download did not have the kendoScheduler  kendoui.web.2013.2.716.open-source where as ur kendoui.complete.2013.2.716.trial had it..

I have just checked our official Kendo UI Web GPL distribution files and the Scheduler is included in both the script files and the examples. The problem must be caused by something else. Feel free to send a demo if you need further assistance.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Chris
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Chris
Top achievements
Rank 1
Share this question
or