PDA

View Full Version : [resolved] GridPanel - How to disabled columns Drag and Drop ?



arnolem
22 Jun 2009, 12:21 AM
Hello.

I have a GridPanel with 4 columns. A have disabled "rezisable", "sortable", "menu" but I want to disabled Drag And Drop and I dont find the good property.

Can You Help Me please ?



var grid = new Ext.grid.GridPanel({
store: store,
columns: [
{id:'company', header: \"col1\", width:70, sortable: false, resizable: false, menuDisabled: true, dataIndex: 'col1'},
{header: \"col2\", width:70, sortable: false, resizable: false, menuDisabled: true, dataIndex: 'col2'},
{header: \"col3\", width:70, sortable: false, resizable: false, menuDisabled: true, dataIndex: 'col3'},
{header: \"col4\", width:70, sortable: false, resizable: false, menuDisabled: true, dataIndex: 'col4'},
{header: \"col5\", width:70, sortable: false, resizable: false, menuDisabled: true, dataIndex: 'col5'}
],
stripeRows: true,
height:300
});
grid.render('grid-example');

Condor
22 Jun 2009, 12:51 AM
Not supported by default, but you could use the code from this thread (http://www.extjs.com/forum/showthread.php?t=53666).

arnolem
22 Jun 2009, 1:21 AM
oki, thanks for this information ;)