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

javascript error when upgrade Telerik.Web.UI.dll

14 Answers 294 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 30 Jan 2009, 09:38 PM
Hi, 

I just updatedTelerik.Web.UI.dll file and I got error message which I didn't encounter before upgrade. The error message is
Object doesn't support this property or method. I found if there is a RadDatePicker on that page, the error will popup.

Can anyone help me out on this issue. 

Thanks

Anthony

14 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 02 Feb 2009, 07:14 AM

Hi,

I am not aware of what is happening on your end. I guess, you used the ASP.NET version of RadControls and now upgraded to the ASP.NET AJAX version. This happen if you used any client side methods for previous version and that are no longer supported by the AJAX version or the methods changed. You can refer the following online documentations for more information about the client side methods and accessing the RadDatePicker in ASP.NET AJAX version. I hope this will help you.

RadCalendar for ASP.NET AJAX (Client-Side Basics)
RadDatePicker Client Object

Thanks,
Shinu.
0
Anthony
Top achievements
Rank 1
answered on 02 Feb 2009, 02:26 PM
Shinu,

Thank you very much for your reply. I upgrade the Telerik.web.ui.dll from Q2 2008 to Q3 2008. But after upgrade, my RadDatePicker control stop working. When I click calender icon, no calender popup. Even I remove all client side code for it, it is still not working. I got javascript error in Telerik runtime file. The error point to following part of code. The line of bold code is the place to cause error.

saveClientState:function(_23){
var _24=["enabled","emptyMessage"];
if(_23){
for(prop in _23){
_24[_24.length]=_23[prop];
}
}
var _25={};
for(var i=0;i<_24.length;i++){
_25[_24[i]]=this["get_"+_24[i]]();
}
return Sys.Serialization.JavaScriptSerializer.serialize(_25);
}
0
Sebastian
Telerik team
answered on 02 Feb 2009, 03:37 PM
Hi Anthony,

I tried to replicate the issue in several local tests but without much success. To progress in our investigation, I suggest you prepare a stripped working version of your project, demonstrating the erroneous behavior, and send it enclosed to a formal support ticket. We will test/debug it locally and will get around to you with our findings.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anthony
Top achievements
Rank 1
answered on 03 Feb 2009, 12:05 PM
I found what causes problem. It's the Prototype.js file. I am trying to create a sample application to reproduce the problem.
0
MD
Top achievements
Rank 1
answered on 05 Feb 2009, 04:48 PM
Is there anything new on this issue?  I am experiencing the same issue when I use a GridDateTimeColumn on my grids.  There is not any custom js or special about the column.  It is just a plain GridDateTimeColumn, but it bombs on the line Anthony points out.
0
Anthony
Top achievements
Rank 1
answered on 05 Feb 2009, 08:04 PM
This is really odd. I tried to create a sample application that reproduce the problem but I can't. The code is almost same, but I have no problem on sample application. When I got error, it is in runtime WebResource.axd?d=--- file. and it's in Telerik.Web.UI.Input.TextBox.RadInputScript.js part. Can someone help me out?

Thanks,

Anthony
0
James
Top achievements
Rank 2
answered on 05 Feb 2009, 08:47 PM
I'm getting the same error as well.. just upgraded to the latest version
same line of code
also using prototype & scriptaculous v1.6 and 1.8 respectively (from the google apis lib)
0
Sebastian
Telerik team
answered on 06 Feb 2009, 07:07 AM
Hello guys,

As I said in my previous post in this thread:

To progress in our investigation, I suggest you prepare a stripped working version of your project, demonstrating the erroneous behavior, and send it enclosed to a formal support ticket. We will test/debug it locally and will get around to you with our findings.

Kind regards,
Sebastian
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anthony
Top achievements
Rank 1
answered on 06 Feb 2009, 02:58 PM
Ok, here is my problem and question. I created a stripped working version of my project, but but it doesn't have the problem that my developed project has. The datepicker works fine. I do notice a difference in runtime WebResource.axd. In stripped working version, I don't see those Microsoft ajax.js and telerik controls js files embeded in WebResource.axd, but in developed project, I found those js files and the error occured in Telerik.Web.UI.Input.TextBox.RadInputScript.js. 

So can someone help me to figure out why my stripped working version doesn't have those js files?

Thanks,

Anthony
0
Accepted
James
Top achievements
Rank 2
answered on 06 Feb 2009, 03:07 PM
Perhaps your scriptcombine is false on radscriptmanager?
I recommend using Firebug for Firefox to see lists of all scripts on a page. They def. must be on the page or else nothing would work.
As for the error - the difference between breaking and working is a reference to Prototype+Scriptaculous on the page. If i remove them, it works.

Also, I tried the latest dev build (1403) and the problem disappeared!
0
Bud Welborn
Top achievements
Rank 1
answered on 09 Feb 2009, 01:45 PM
Morgan,

Thanks a lot for your reply. After I installed the latest dev build (1403), the problem solved. But the style is not working properly, anyway, I will start a new thread for that problem. 

Again, thank you very much for your help.

Anthony
0
Nicklas Johansson
Top achievements
Rank 1
answered on 17 Feb 2009, 03:13 PM
I also get JavaScript problems when using the RadDatePicker. I will try the dev-build.
0
vtech
Top achievements
Rank 1
answered on 11 Mar 2009, 05:27 AM
I also got the error .. removed the prototype.js file, and all worked A1.   (http://www.prototypejs.org/)

We only had minimal usage of prototype, so no drama for us.   The good news is that with ajax $get(), and the additional functions provided by MS (http://www.asp.net/AJAX/Documentation/Live/ClientReference/default.aspx), add in telerik goodies, plus inclusion of jQuery and we'll be dropping prototype from our site as it's now superfluous.





0
Nguyen
Top achievements
Rank 1
answered on 12 Oct 2011, 10:27 AM
Hi,

I got this error when upgraded from verion Q1 2009 to Q2 2011 (version 2011.2.712.40).

When I click in calendar button to select the date, I got the javascripts error message and it detected from Telerik.Web.UI.Webresource.axd line 9210 and the error message is "'inderfined' is null or not an object".

And I got the other error : Object does not support this method or Property at Telerik.Web.UI.Webresource.axd , line 9147

Anyone can help me in this case ?

Thanks,
Nguyen
Tags
General Discussions
Asked by
Anthony
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Anthony
Top achievements
Rank 1
Sebastian
Telerik team
MD
Top achievements
Rank 1
James
Top achievements
Rank 2
Bud Welborn
Top achievements
Rank 1
Nicklas Johansson
Top achievements
Rank 1
vtech
Top achievements
Rank 1
Nguyen
Top achievements
Rank 1
Share this question
or