[3.3.0] Ext.grid.GridPanel -> enableDragDrop : true & CheckboxSelectionModel
hi team,
i just tried to combine a GridPanel with CheckboxSelectionModel and enableDragDrop and noticed, that nothing happens when you click on a checkbox as soon as enableDragDrop is set to true.
to reproduce this, it is important to use the config:
Code:
var sm = new Ext.grid.CheckboxSelectionModel({
checkOnly : true
});
with checkOnly : false, it works fine.
for a testcase use examples/grid/grid-plugins.html
and change grid-plugins.js:
Code:
////////////////////////////////////////////////////////////////////////////////////////
// Grid 2
////////////////////////////////////////////////////////////////////////////////////////
var sm = new xg.CheckboxSelectionModel({
checkOnly : true
});
var grid2 = new xg.GridPanel({
enableDragDrop : true,
store: new Ext.data.Store({
reader: reader,
data: xg.dummyData
}),
cm: new xg.ColumnModel({
defaults: {
width: 120,
sortable: true
},
columns: [
sm,
{id:'company',header: "Company", width: 200, dataIndex: 'company'},
{header: "Price", renderer: Ext.util.Format.usMoney, dataIndex: 'price'},
{header: "Change", dataIndex: 'change'},
{header: "% Change", dataIndex: 'pctChange'},
{header: "Last Updated", width: 135, renderer: Ext.util.Format.dateRenderer('m/d/Y'), dataIndex: 'lastChange'}
]
}),
sm: sm,
columnLines: true,
width:600,
height:300,
frame:true,
title:'Framed with Checkbox Selection and Horizontal Scrolling',
iconCls:'icon-grid',
renderTo: document.body
});
best regards
tobiu