PDA

View Full Version : [3.3.1] LockingGridView - broken getLockedCount



DeyV
11 Dec 2010, 5:37 AM
For grids, where the locked columns are not on the firsts places in config, method getLockedCount not work.

Simple modification, maybe not optimal, but can fix it:


/**
* Returns the total number of locked columns
* @return {Number} The number of locked columns
*/
getLockedCount : function() {
var len = this.config.length;
var count = 0;
for (var i = 0; i < len; i++) {
if ( this.isLocked(i) ) {
count++;
}
}

return count;
},