I'm doing a drag-drop on my grid rows, which correctly moves the rows and places them, with all the row values into the newly selected row. The problem I'm facing is that I want to maintain one of the columns so that the values of that column always stay the same despite the row changing. Is there a way to skip the replacement of values for one column.
PHP Code:
var ddrow = new Ext.dd.DropTarget(grid, {
ddGroup : 'testDDGroup',
copy:false,
notifyDrop : function(dd, e, data){
var sm=selModel;
var rows=sm.getSelections();
var cindex=dd.getDragData(e).rowIndex;
if (typeof cindex != "undefined") {
for (i = 0; i < rows.length; i++) {
rowData=store.getById(rows[i].id);
if(!this.copy) {
store.remove(store.getById(rows[i].id));
store.insert(cindex,rowData);
}
}
sm.selectRecords(rows);
}
}
});