PDA

View Full Version : getScrollOffset issue in locking gridview



cfingerh
30 Dec 2009, 6:16 AM
I am using the new LockingGridView.

I am using the example
http://www.extjs.com/deploy/dev/examples/grid/locking-grid.html

It works perfect, but once I try to create the lockinggridview inside a Tab Panel it does not show up and I get the following javascript error:"this.getScrollOffset is not a function"

I am using extjs3.1 and FF 3.5

Thanks

Condor
30 Dec 2009, 6:24 AM
Can you post your code?

cfingerh
30 Dec 2009, 7:35 AM
It took me a while to discover the problem. I did upgrade to 3.1, but I forgot to upgrade one of the .js files in one site.

UGA_Zimma
8 Jan 2010, 10:57 AM
What file was the solution, i am seeing the same error?

Thanks

arifali
18 Jan 2011, 10:52 AM
I am using Ext 2.2.1 and wanted to use the locking column function. I found the example code under:
http://dev.sencha.com/deploy/dev/examples/grid/locking-grid.html
And the LockingGridView.js under:
http://trac.geoext.org/browser/ext/3.1.1/examples/ux/LockingGridView.js?rev=1907

which is written in Ext 3.3.1. I am using Ext.grid.EditorGridPanel and want to lock 2-3 columns in my grid (rendered in a tab panel). I could not find the getScrollOffset() method defined anywhere in the LockingGridView.js, so I commented this code. But then it started to fail in updateLockedWidth() on line: if(!this.grid.autoHeight){ -- it does not recognize autoHeight method.

We cannot upgrade our Ext at this point (as we're going into production), but want to use Locking Column funcitonality in Ext 2.2.1. I could not find any LockingGridView.js file that has getScrollOffset() defined. Can you help me provide a copy where it is there?

Condor
18 Jan 2011, 11:38 PM
You need LockingGridPanel for Ext 2.2.1 (here (http://www.sencha.com/forum/showthread.php?17942-2.0-grid-with-locking-column-NEW-Update-5)).