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

[Solved] "Type is undefined error" in version 2011.1.315.340

0 Answers 21 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ratnesh
Top achievements
Rank 1
Ratnesh asked on 02 Nov 2011, 01:21 PM
Hi,

We have two branches in our source control. Both use differnt versions of Telerik.Web.Mvc. Branch 1 uses 2011.1.315.340. Branch 2 uses 2010.3.1121.340.

We use datepicker control from Telerik.Web.Mvc.In Branch1 we get an error upon clicking the button of the datepicker to view the calender. The error is thrown in

telerik.datepicker.js  at line  446.



  $t.datepicker = function (element, options) {
        $.extend(this, options);

        if (element.nodeName.toLowerCase() !== "input" && element.type.toLowerCase() !== "text") {
            throw "Target element is not a INPUT";
        }


The error says "Type is undefined"

Branch 2 works very well.

When we temporarily used Branch 2 telerik.datepicker.js and telerik.calendar.js files in Branch 1, it worked correctly. We suspect some changes in the new telerik.datepicker.js or telerik.calendar.js files i.e. in version 2011.1.315.340 stop it from working correctly.

Can you help us fix this problem?

Thanks
 
Tags
Calendar
Asked by
Ratnesh
Top achievements
Rank 1
Share this question
or