PDA

View Full Version : [DUP] Problems with Lockable grid



vladsch
15 Jun 2011, 12:28 PM
Hi,

1. If locked column has 'flex' option then locked column is not visible (white spot only)
2. If lockable grid has an id then an error is occured in the getState method because 'headerCt' is undefined
3. Unlock locked column and the lock again, locked column is disappeared (try on online sample)

Dudboi
31 Oct 2012, 11:59 AM
This is old, but I'll add on to it; This is valid for ExtJS 4.1.1a

- Lockable grids do not accept column defaults. Might be nice to bubble the config downward during the layout of the subgrids.

- When using the groupsummary feature, if the grid is a lockedgrid, the generateSummaryData method runs into an exception on line 228. I believe this will only happen if only one column is locked (I haven't tested it for multiple locked columns). What's happening is that fieldData returns a string as opposed to an array since there is only one locked column, and the for look still carries out as if each of key is a character in the string fieldData. I made a small change (in red) to mine to make it work.



for (i = 0, length = columns.length; i < length; ++i) {
comp = Ext.getCmp(columns[i].id);
fieldData = me.getSummary(store, comp.summaryType, comp.dataIndex, true);

if(Ext.typeOf(fieldData) != "string"){
for (key in fieldData) {
if (fieldData.hasOwnProperty(key)) {
data[key][comp.id] = fieldData[key];
}
}
}

for (key in remoteData) {
if (remoteData.hasOwnProperty(key)) {
remote = remoteData[key][comp.dataIndex];
if (remote !== undefined && data[key] !== undefined) {
data[key][comp.id] = remote;
}
}
}
}

evant
31 Oct 2012, 5:56 PM
We have a ticket open for the defaults under: EXTJSIV-7331

I'll make a note under that ticket to also look at the grouping summary.