Skip to content

Commit

Permalink
Fix for Drag and drop rows to get the right data in case of multisele…
Browse files Browse the repository at this point in the history
…ct, rownumber or subgrid
  • Loading branch information
tonytomov committed Jan 27, 2012
1 parent 0afdf10 commit c0699c7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/grid.jqueryui.js
Expand Up @@ -396,13 +396,15 @@ $.jgrid.extend({
var accept = $(ui.draggable).attr("id");
var getdata = ui.draggable.parent().parent().jqGrid('getRowData',accept);
if(!opts.dropbyname) {
var j =0, tmpdata = {}, dropname;
var j =0, tmpdata = {}, nm;
var dropmodel = $("#"+this.id).jqGrid('getGridParam','colModel');
try {
for (var key in getdata) {
if(getdata.hasOwnProperty(key) && dropmodel[j]) {
dropname = dropmodel[j].name;
tmpdata[dropname] = getdata[key];
nm = dropmodel[j].name;
if( !(nm == 'cb' || nm =='rn' || nm == 'subgrid' )) {
if(getdata.hasOwnProperty(key) && dropmodel[j]) {
tmpdata[nm] = getdata[key];
}
}
j++;
}
Expand Down

0 comments on commit c0699c7

Please sign in to comment.