Skip to content
Browse files

Fix for Drag and drop rows to get the right data in case of multisele…

…ct, rownumber or subgrid
  • Loading branch information...
1 parent 0afdf10 commit c0699c712ae238a962a3d45fe5f4a66126a5ece5 @tonytomov committed Jan 27, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 js/grid.jqueryui.js
View
10 js/grid.jqueryui.js
@@ -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++;
}

0 comments on commit c0699c7

Please sign in to comment.
Something went wrong with that request. Please try again.