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

Getting started Kendo UI for ASP.NET MVC -problems

3 Answers 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Venkatesh
Top achievements
Rank 1
Venkatesh asked on 26 Aug 2013, 09:44 AM
I reffered the below link to create a asp.net mvc3 project with kendo UI
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/introduction
I use razor view. my index page is as follows

Index.cshtml
@{
Layout = null;
}

<!DOCTYPE html>

<html>
<head>
<title>Index</title>
<link href="../../KendoStyles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="../../KendoStyles/kendo.default.min.css" rel="stylesheet" type="text/css" />

<script src="../../KendoScripts/jquery.min.js" type="text/javascript"></script>
@*<script src="../../KendoScripts/kendo.all.min.js" type="text/javascript"></script>*@
<script src="../../KendoScripts/kendo.web.min.js" type="text/javascript"></script>
<script src="../../KendoScripts/kendo.aspnetmvc.min.js" type="text/javascript"></script>

</head>
<body>
<h1>Welcome to Kendo Samples</h1>
<div>
@(Html.Kendo().DatePicker().Name("Birthday"))
</div>
</body>
</html>

when i use kendo.web.min.js i get the error "Microsoft JScript runtime error: Unable to get value of the property 'extend': object is null or undefined"
with kendo.all.min.js it works fine. I get no error message.

What is wrong with my code if any?

3 Answers, 1 is accepted

Sort by
0
Accepted
Sebastian
Telerik team
answered on 26 Aug 2013, 11:00 AM
Hello Venkatesh,

I tried to replicate the issue using the latest version 2013.2.716 of our Kendo UI Complete for ASP.NET MVC product but to no avail. I used your razor view definition in a quick test project which I am attaching to this forum post. No error was produced in my case and the date picker was visualized and functioned as expected.

Can you test that on your machine and compare the results? Any additional insight can help to pinpoint the cause of the abnormality to address it accordingly.

Regards,
Sebastian
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Venkatesh
Top achievements
Rank 1
answered on 27 Aug 2013, 06:48 AM
The version of jquery.min.js that I used was v1.7.1. I didnt get any error when I use 1.8.3 version. I also dont use the latest version of KendoUI(v2013.1.319).
 
If I get the latest version of kendoUI, how do I make sure which version of jquery.min.js to use. How to we approach for such dependencies. 
0
Venkatesh
Top achievements
Rank 1
answered on 27 Aug 2013, 07:44 AM
Please ignore the previous post. I had different versions of js files causing the problems.
Tags
General Discussions
Asked by
Venkatesh
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Venkatesh
Top achievements
Rank 1
Share this question
or