X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/source/LockingView.html diff --git a/docs/source/LockingView.html b/docs/source/LockingView.html index 39f8b4ab..1ce4502b 100644 --- a/docs/source/LockingView.html +++ b/docs/source/LockingView.html @@ -76,6 +76,24 @@ Ext.define('Ext.grid.LockingView', { return cols.concat(this.normalGrid.headerCt.getGridColumns()); }, + getEl: function(column){ + return this.getViewForColumn(column).getEl(); + }, + + getViewForColumn: function(column) { + var view = this.lockedView, + inLocked; + + view.headerCt.cascade(function(col){ + if (col === column) { + inLocked = true; + return false; + } + }); + + return inLocked ? view : this.normalView; + }, + onItemMouseEnter: function(view, record){ var me = this, locked = me.lockedView, @@ -127,14 +145,9 @@ Ext.define('Ext.grid.LockingView', { }, getCell: function(record, column){ - var view = this.lockedView, + var view = this.getViewForColumn(column), row; - - - if (view.getHeaderAtIndex(column) === -1) { - view = this.normalView; - } - + row = view.getNode(record); return Ext.fly(row).down(column.getCellSelector()); },