javascript error when upgrade Telerik.Web.UI.dll

15 posts, 1 answers
  1. Anthony
    Anthony avatar
    25 posts
    Member since:
    Oct 2008

    Posted 30 Jan 2009 Link to this post

    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

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 02 Feb 2009 Link to this post

    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.
  3. Anthony
    Anthony avatar
    25 posts
    Member since:
    Oct 2008

    Posted 02 Feb 2009 Link to this post

    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);
    }
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Feb 2009 Link to this post

    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.
  5. Anthony
    Anthony avatar
    25 posts
    Member since:
    Oct 2008

    Posted 03 Feb 2009 Link to this post

    I found what causes problem. It's the Prototype.js file. I am trying to create a sample application to reproduce the problem.
  6. MD
    MD avatar
    55 posts
    Member since:
    Jul 2012

    Posted 05 Feb 2009 Link to this post

    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.
  7. Anthony
    Anthony avatar
    25 posts
    Member since:
    Oct 2008

    Posted 05 Feb 2009 Link to this post

    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
  8. James
    James avatar
    13 posts
    Member since:
    Feb 2007

    Posted 05 Feb 2009 Link to this post

    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)
  9. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 06 Feb 2009 Link to this post

    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.
  10. Anthony
    Anthony avatar
    25 posts
    Member since:
    Oct 2008

    Posted 06 Feb 2009 Link to this post

    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
  11. Answer
    James
    James avatar
    13 posts
    Member since:
    Feb 2007

    Posted 06 Feb 2009 Link to this post

    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!
  12. Bud Welborn
    Bud Welborn avatar
    1 posts
    Member since:
    Nov 2008

    Posted 09 Feb 2009 Link to this post

    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
  13. Nicklas Johansson
    Nicklas Johansson avatar
    7 posts
    Member since:
    Sep 2008

    Posted 17 Feb 2009 Link to this post

    I also get JavaScript problems when using the RadDatePicker. I will try the dev-build.
  14. vtech
    vtech avatar
    17 posts
    Member since:
    Oct 2004

    Posted 11 Mar 2009 Link to this post

    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.





  15. Nguyen
    Nguyen avatar
    1 posts
    Member since:
    Oct 2011

    Posted 12 Oct 2011 Link to this post

    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
Back to Top