beforePaste: function(evt, ui){ //sanitize pasted data. var CM = this.getColModel(), rows = ui.rows, area = ui.areas[0], c1 = area.c1; for(var i=0; i<rows.length; i++){ var row = rows[i]; for(var j=0; j<row.length; j++){ var column = CM[j+c1], dt = column.dataType; if( dt == "integer" || dt == "float" ){ row[j] = row[j].replace(/\,/g,""); } } }}