The application had implemented in ext JS 2.3 version, here one of the functionality remove the items to recyclebin [source code was given on bleow], this functionality is working in IE6 browser only, after then IE8 ,chrome and mozilla browsers it's not working. we were able to deleting only 6 items, more than 6items it was not able to deleting.
The same functionality which it's worked in IE6,How could we make it work in chrome and mozilla also. Could you please suggest regarding the issue.
source code:
var dd = new Ext.dd.DropTarget(this.dropTarget, {
ddGroup : 'contentItemDragDropGroup',
notifyDrop: function( source, e, data ) {
var dropRec = (data.selections && data.selections[0] ? data.selections[0] : null);
data.grid.removeItemAt( data.rowIndex, data.colIndex );
//this.grid.addItem(dropRec);
return true;
}
}
notifyDrop: function( source, e, data ) {
var dropRec = (data.selections && data.selections[0] ? data.selections[0] : null);
if(dropRec.fromSelectionGrid && this.grid.recordExists(dropRec))
return false;
var col = this.grid.getView().findCellIndex( e.target );
if(!dropRec)
return false;
var row = this.grid.getView().findRowIndex( e.target );
/* if(!Ext.isEmpty(data.rowIndex) && !Ext.isEmpty(data.colIndex))
data.grid.removeItemAt( data.rowIndex, data.colIndex );
else
data.grid.removeItemAt( data.rowIndex );*/
this.grid.swapItemAt(dropRec, row, col);
return true;
}
Thanks,
Lakshminarayana K
Aucun commentaire:
Enregistrer un commentaire