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

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

10 Answers 71 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Pauli
Top achievements
Rank 1
Pauli asked on 06 Jul 2009, 07:01 AM
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

10 Answers, 1 is accepted

Sort by
0
henk
Top achievements
Rank 1
answered on 08 Jul 2009, 09:23 AM
We get the same error on slower clients. We are not able to reproduce the error on our development environment.
0
Svetlina Anati
Telerik team
answered on 09 Jul 2009, 10:21 AM
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.
0
henk
Top achievements
Rank 1
answered on 11 Sep 2009, 09:55 AM
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.
0
Tsvetie
Telerik team
answered on 14 Sep 2009, 07:05 AM
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.
0
henk
Top achievements
Rank 1
answered on 14 Sep 2009, 08:55 AM
Please send us a hotifx as soon as you have found a solution.
0
Tsvetie
Telerik team
answered on 02 Nov 2009, 01:09 PM
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.
0
Paul
Top achievements
Rank 1
answered on 10 Nov 2009, 02:02 PM
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!
0
Tsvetie
Telerik team
answered on 11 Nov 2009, 08:02 AM
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.
0
bdk0172
Top achievements
Rank 1
answered on 25 May 2010, 02:02 PM
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.
0
Tsvetie
Telerik team
answered on 27 May 2010, 09:32 AM
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.
Tags
Splitter
Asked by
Pauli
Top achievements
Rank 1
Answers by
henk
Top achievements
Rank 1
Svetlina Anati
Telerik team
Tsvetie
Telerik team
Paul
Top achievements
Rank 1
bdk0172
Top achievements
Rank 1
Share this question
or