amanind
7 Jan 2012, 10:17 AM
I am implementing drag and drop functionality in singe grid, but it is not working. Can anyone let me know what is wrong I am doing.
Here is my code
Ext.define('AS.view.task.TaskListView', {
extend: 'Ext.grid.Panel',
alias: 'widget.tasklist',
id: 'organizationTasks',
selType: 'cellmodel',
store: 'TaskRootStore',
autoHeight: true,
viewConfig: {
copy: true,
stripeRows: false,
getRowClass: function (row, index) {
var data = row.data;
return data.HighlightClass;
},
plugins: {
ptype: 'gridviewdragdrop',
dragText: 'Drag and drop to reorganize'
}
},
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 })
]
});
Here is my code
Ext.define('AS.view.task.TaskListView', {
extend: 'Ext.grid.Panel',
alias: 'widget.tasklist',
id: 'organizationTasks',
selType: 'cellmodel',
store: 'TaskRootStore',
autoHeight: true,
viewConfig: {
copy: true,
stripeRows: false,
getRowClass: function (row, index) {
var data = row.data;
return data.HighlightClass;
},
plugins: {
ptype: 'gridviewdragdrop',
dragText: 'Drag and drop to reorganize'
}
},
plugins: [
Ext.create('Ext.grid.plugin.CellEditing', { clicksToEdit: 2 })
]
});