Strange random error : if(this.get_splitter().isVertical())

11 posts, 0 answers
  1. Pauli
    Pauli avatar
    5 posts
    Member since:
    Mar 2008

    Posted 06 Jul 2009 Link to this post

    Hi Telerik.

    I have a strange error while working on a page which has a few telerik components including a splitter.
    Sometimes it happens that I get an error

    Microsoft JScript runtime error: 'this.get_splitter()' is null or not an object

    and while debugging, Visual Studio breaks on the following code (in bold)

    Telerik.Web.UI.SplitterPaneBase.callBaseMethod(this,"initialize");
    if(this.get_splitter().isVertical()){
    this.getVarSize=this.get_width;
    this.setVarSize=this.set_width;

    Unfortunately this problem happens rarely and without any particular sequence, hence difficult to reproduce :(

    Can someone please guide me on the different possible causes?
    Thanks
  2. henk
    henk avatar
    8 posts
    Member since:
    Nov 2006

    Posted 08 Jul 2009 Link to this post

    We get the same error on slower clients. We are not able to reproduce the error on our development environment.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 09 Jul 2009 Link to this post

    Hi guys,

    We have been contacted with this problem in the following thread:

    http://www.telerik.com/community/forums/aspnet/splitter/splitter-behavior-differ-for-ie6-vs-ie7.aspx

    However, this is a very specific case, the issue is reproduced only in specific technical configuration on the machine and with the treeview of Component One when there are many nodes and I am not sure that this is also your case. However, we never got a reproduction demo on which to investigate the problem (it seems that for some reason the RadPane's client object is created before the RadSplitter's one but the source code avoids this and we cannot find in what case this happens) and we never encountered it on our side.

    This being said, we want to kindly ask you to provide a sample, fully runnable reproduction demo or at least a live url where we can observe the issue. Even if the problem occurs randomly, we will research further and do our best to solve it but in order to be able to do this we should have the reproduction setup and detailed reproduction steps. 


    Greetings,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. henk
    henk avatar
    8 posts
    Member since:
    Nov 2006

    Posted 11 Sep 2009 Link to this post

    We are able to reproduce this error on our website on a laptop. The error does not occur every time, but very frequently, i.e., over 50% of the time. Using the development tools shipped with IE8, I have found out, that method set_splitter is called too early.

    Javascript stack trace when method set_splitter is called too early:

    set_splitter()  
    Sys$Component$_setReferences(a,c)  
    $create(Telerik.Web.UI.RadPane, {"_collapsedDirection":1,"_expandedSize":0,"_index":0,"_indexInPanes":0,"_originalHeight":"","_originalWidth":"","_scrollLeft":0,"_scrollTop":0,"clientStateFieldID":"ctl00_cPH_lPane_ClientState"}, null, {"parent":"ctl00_cPH_cSplitter","splitter":"ctl00_cPH_cSplitter"}, $get("ctl00_cPH_lPane"));  
    ----  
    Sys.Application.add_init(function()  


    Javascript stack trace when method set_splitter is called correctly:

     
    set_splitter()  
    Sys$Component$_setReferences(c,b[a].references)  
    this.endCreateComponents()  
    Function.createDelegate  
     

    Somehow the Sys$Component$_setReferences is already called during $create of the first radpane. This seems to be too early. I hope this information helps you in finding a solution, because this bug makes our websites unworkable.
  6. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 14 Sep 2009 Link to this post

    Hello Henk,
    One of our customers has sent us a working project with which we can reproduce the problem locally (indeed it does not happen every time, but it is enough for us to start work on it) and we will do our best to fix it for the next update of the suite.

    Best wishes,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. henk
    henk avatar
    8 posts
    Member since:
    Nov 2006

    Posted 14 Sep 2009 Link to this post

    Please send us a hotifx as soon as you have found a solution.
  8. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 02 Nov 2009 Link to this post

    Hi Henk,
    I would like to inform you that the problem is fixed and the fix will be available in the official Q3 2009 release, scheduled for this week.

    Kind regards,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Paul
    Paul avatar
    4 posts
    Member since:
    Feb 2009

    Posted 10 Nov 2009 Link to this post

    Q3 2009 Release Code does not resolve the problem. For me, no splitter object used on the webform but the clientside code is reaised to deal with such an object!
  10. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 11 Nov 2009 Link to this post

    Hi Paul,
    The Q3 2009 version of the suite fixed the problem that is discussed in this thread.

    I noticed that you have opened a support ticket with the same question and the simplicity of the code you have provided in it, leads me to believe that the problem you have is different from the one that is described in this thread. I already answered your support ticket and as I will need a running project in order to help you, let us continue this discussion in the support ticket.

    Sincerely yours,
    Tsvetie
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. bdk0172
    bdk0172 avatar
    50 posts
    Member since:
    Oct 2006

    Posted 25 May 2010 Link to this post

    We are no longer eligible to download newer versions of the controls, the latest we can get is the Q3 2009 beta(2009.3.1016.35).  According to the release notes, this issue was fixed in Q3 2009(2009.3.1103).  Is it possible to get a hotfix for this or do we have to pay for the full version in order to get it?  We have one customer with many users that access our site using Sprint PCS cards and they are getting this error quite frequently due to having a slower connection.
  12. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 27 May 2010 Link to this post

    Hello bdk0172,
    I just checked your subscription and noticed that you renewed it yesterday. Let me know in case you have problems with the new version of Telerik.Web.UI.

    Kind regards,
    Tsvetie
    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017