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

[Solved] a in undefined

5 Answers 122 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vincent Girard
Top achievements
Rank 1
Vincent Girard asked on 11 Mar 2010, 05:03 PM
I added this new control to my view and since then I get a javascript error
"a is undefined" in  : http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js
Ligne : 38

I don't know where to look... 
Also, do I need to specify every params like .MaxDate().MinDate().Value().ShowButton() or theyy have default value?

If I remove the DatePicker I don't have any problem, here is my code : 
<p> 
        <label for="CreationDate">Date</label> 
        <%= Html.Telerik().DatePicker().Name("CreationDate").MaxDate(Model.MaxDate).MinDate(Model.MinDate).Value(Model.CreationDate).ShowButton(true) %> 
        <%= Html.ValidationMessage("CreationDate")%> 
    </p> 

And I have those ref in my page :
<link rel="stylesheet" href="<%= Links.Content._2010_1_309.telerik_common_min_css %>" type="text/css" media="all" /> 
    <link rel="stylesheet" href="<%= Links.Content._2010_1_309.telerik_windows7_min_css %>" type="text/css" media="all" /> 
 
and this on the bottom : 
 
<%= Html.Telerik().ScriptRegistrar().jQuery(false).DefaultGroup(g => g.DefaultPath("~/Content/scripts/2010.1.309")) %> 

5 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 11 Mar 2010, 05:25 PM
Hello Vincent Girard,

This is strange issue. Could you please share with us, which version of Telerik Extensions for ASP.NET MVC you are using. Also are you building you project upon MVC 1.0 or MVC 2.0 ?

The mentioned properties has default values. For more information review this help topic.

Kind regards,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Vincent Girard
Top achievements
Rank 1
answered on 11 Mar 2010, 05:29 PM
Sorry I forgot to mention that, I'm under the latest relase of telerik, building on MVC 1.0.

And I also like to tell you that I had some hard time to get the exemples project working under MVC1.0...

Thx for the link to the doc for the default values.
0
Georgi Krustev
Telerik team
answered on 11 Mar 2010, 05:38 PM
Hello Vincent,

I have attached a runnable project build upon MVC 1.0.

The Examples uses MVC 2.0, because of the EditorFor and DataAnnotations support introduces with MVC 2.0. Hence editing examples will not run under MVC 1.0 and some other examples.

Greetings,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Vincent Girard
Top achievements
Rank 1
answered on 11 Mar 2010, 05:44 PM
Is ther a way I can email you a private link so you could take a look to my website? Cause I know it's working since I don't get the same error in youre exemples but I can't figure out what's the problem in my page...
0
Georgi Krustev
Telerik team
answered on 12 Mar 2010, 09:23 AM
Hello Vincent,

For exchanging private information, we offer support tickets, which is part of our commercial license.

About your question:
The error could be caused by incorrect version of jQuery. The latest official release of Telerik Extensions for ASP.NET MVC (2010.1.309) works with jQuery 1.4.2 version. Please verify that you are using the right versions.

Best regards,
Georgi Krustev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Date/Time Pickers
Asked by
Vincent Girard
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Vincent Girard
Top achievements
Rank 1
Share this question
or