-
21 Sep 2010 6:29 AM #1
[FIXED] Selection Model Binding Problem When Using Multiple Grids
[FIXED] Selection Model Binding Problem When Using Multiple Grids
Hi,
There is a selModel binding problem when you have more than one grid in one root component. Problem occurs when first grid has no selModel specified but others has. In design time everthing seems ok. But when previewing rendering process is broken.
In the exported code selModel is defined in the right grid, but selModel is bound to first grid. If you bind a selModel to first grid too, everything works OK.
how to reproduce?
- add a panel,
- set a layout
- add 2 grids, (you can also duplicate the first one)
- set autoRefs
- bind a selModel (checkbox) to second grid
- preview
rendering is broken...
an exported code to show wrong binding:
as you can see first grid's selModel is being bound to first colModel.PHP Code:MyPanelUi = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 919,
height: 569,
layout: 'border',
initComponent: function() {
this.items = [
{
xtype: 'grid',
title: 'My Grid',
region: 'center',
ref: 'first',
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'string',
header: 'Column',
sortable: true,
width: 100
}
]
},
{
xtype: 'grid',
title: 'My Grid',
region: 'east',
width: 372,
ref: 'second',
selModel: new Ext.grid.CheckboxSelectionModel({
}),
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'string',
header: 'Column',
sortable: true,
width: 100
}
]
}
];
MyPanelUi.superclass.initComponent.call(this);
this.first.colModel.config.unshift(this.first.selModel);
}
});
-
22 Sep 2010 8:54 PM #2Sencha - Desktop Packager Dev Team
- Join Date
- Mar 2007
- Location
- Baltimore, MD.
- Posts
- 1,745
- Vote Rating
- 6
Thanks for reporting this!
-
26 Nov 2011 2:15 PM #3
Hi!,
Is there a fix for this? I am having similar problem. If you create two grids from same xtype, then use checkboxselection model, it works ok with one grid, but when you switch to the tab that the second grid is in, there are now 2 columns of checkboxes...
-
21 Dec 2011 3:26 PM #4
-
6 Jan 2012 8:59 AM #5
I have same issue with 3 grids in one container
I have same issue with 3 grids in one container
I have three grids in one container , first time when you load the page it shows the data in first grid but to see the data in 2nd and 3rd grid I have to click 2 and 3rd tab then I can see the data, Also I noticed that only two rows get selected .
-
15 May 2012 8:06 PM #6
what is FIXED ??
what is FIXED ??
Can anybody show more clear on how to fix ? I am facing this problem too

Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Multiple Cells Selection Model
By kpopov in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 6 May 2011, 11:31 AM -
[FIXED] Grid selection model does not fire selection event when mode is SINGLE
By yleguern in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 28 Aug 2008, 7:53 AM


Reply With Quote