-
19 Jul 2010 5:21 AM #21
-
20 Jul 2010 1:23 PM #22Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
I haven't seen this problem, can you post a reproducible test case?
-
21 Jul 2010 1:51 AM #23
I am able to reproduce this strange behaviour only by specificating cellSelectionModel as grid property inside your examples.
I've tested it on Chrome and FF!Code:// create the Grid // To use locking functionality we must explicitly specify the LockingColumnModel and the LockingGridView var grid = new Ext.grid.GridPanel({ store: store, colModel: new Ext.ux.grid.LockingColumnModel([ {header: 'Group', width: 160, sortable: true, dataIndex: 'group', locked: true}, {id:'company',header: 'Company', width: 160, sortable: true, dataIndex: 'company', locked: true}, {header: 'Price', width: 125, sortable: true, renderer: 'usMoney', dataIndex: 'price'}, {header: 'Change', width: 125, sortable: true, renderer: change, dataIndex: 'change'}, {header: '% Change', width: 125, sortable: true, renderer: pctChange, dataIndex: 'pctChange'}, {header: 'Last Updated', width: 125, sortable: true, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'} ]), selModel : new Ext.grid.CellSelectionModel({moveEditorOnEnter: false}), stripeRows: true, height: 350, width: 500, title: 'Locking Array Grid', view: new Ext.ux.grid.LockingGroupingGridView({ hideGroupedColumn : true }) });
Many thx....
-
21 Jul 2010 2:55 AM #24Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
When using the Ext.grid.CellSelectionModel, to avoid the focus when clicking a locked cell, use this override:
Code:Ext.override(Ext.grid.CellSelectionModel, { handleMouseDown : function(g, row, cell, e){ if(e.button !== 0 || this.isLocked()){ return; } this.select(row, cell, undefined, g.getColumnModel().isLocked(cell)); } });
-
22 Jul 2010 12:01 AM #25
-
28 Jul 2010 4:37 AM #26
Hi Mansk.
First of all ! congratulations for your great work, it helps me a lot. I'm currently using it with the Ext.ux.grid.LockingGridGroupSummary and it works like a charm.
But i may have found a bug. When doing a grid.getView().refresh() the locked columns duplicate themselves.
By tracking the code execution in Chrom debugger I found that it duplicate in the updateLockedWidth method in LockingGridView.js.
It does when executing line 728
Do you have any idea of why this is happening when setting width ?Code:this.lockedWrap.dom.style.width = (lw + rp) + 'px';
-
28 Jul 2010 4:45 AM #27Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
I just tried this, and can't reproduce it in FF. Does it only happen if you're not using Ext.ux.grid.LockingGridGroupSummary? If that's the case I would look at the summary plugin to see why it's causing this.
-
28 Jul 2010 5:03 AM #28
Ok.
Extremly strange.
If i "only" do a grid.getView().refresh() it works fine.
But my case is more complex.
In fact, I've put in place a completly dynamic grid. The column model is defined on the server side. I retriev the information via a store. When this store is loaded, I create a colModel array and then load another store with the fields defined by the information in the colModelStore.
Then and only then can I define my grid with the right colmodel and corresponding data.
In our case, my bug happens when I do a refresh after my 2 store.load().
Very strange.
I'll keep you posted if I find out.
-
28 Jul 2010 5:07 AM #29
ok....

I'm a little ashamed ... and that's an euphemism ...
I forgot to reinitialize an array .... so the colmodel was just growing more and more ...
mea culpa .
sorry for the disruption.
-
31 Jul 2010 4:13 AM #30



Reply With Quote