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

[Solved] Error with page that has Prometheus grid

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
PaulMrozowski
Top achievements
Rank 1
PaulMrozowski asked on 14 Mar 2008, 01:15 PM
 I've got a page which uses the tab control and on two of the pages I'm using the Prometheus grid control. When I click on the tab for those pages I get a Javascript error - Object doesn't support this property or method.

If I scroll up to the top of the JS code, it says it's:

Telerik.Web.UI.Common.Toolkit.CommonScripts.js

Unfortunately, I don't see this file anywhere in the Scripts directory (I know it's served out of the webresource.axd, I was just hoping that it was also available externally). At any rate, this is the line of code (in an anonymous function) that is failing:

_1.OnWindowResize();

It appears to fail because it's trying to call OnWindowResize and only has a onWindowResize function. Here's a bit of code around this line, if it helps:

 
Telerik.Web.UI.GridScrolling.callBaseMethod(this,"dispose");  
},_initializeDimensions:function(){  
var _1=this;  
this.applyFrozenScroll();  
this.onWindowResize();  
this.initializeAutoLayout();  
this._owner.get_element().RadResize=function(){  
_1.onWindowResize();  
};  
if(navigator.userAgent.toLowerCase().indexOf("msie")!=-1){  
this._onResizeDelegate=Function.createDelegate(this,this.onWindowResize);  
setTimeout(function(){  
$addHandler(window,"resize",_1._onResizeDelegate);  
},0);  
}else{  
this._onResizeDelegate=Function.createDelegate(this,this.onWindowResize);  
$addHandler(window,"resize",this._onResizeDelegate);  
}  
this._owner.get_element().RadShow=function(){  
_1.OnWindowResize();  
};  
},applyFrozenScroll:function(){  
this.isFrozenScroll=false;  
this._frozenScroll=$get(this._owner.ClientID+"_Frozen");  
var _2=Telerik.Web.UI.Grid.getScrollBarHeight();  
if(this._frozenScroll){  
var _3=$get(this._owner.ClientID+"_FrozenScroll");  

Any ideas on how to fix this or at least work around it?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Mar 2008, 02:05 PM
Hi PaulMrozowski,

I believe that we have fixed this previously - please try latest Telerik.Web.UI.dll.

Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Grid
Asked by
PaulMrozowski
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or