Skip to content

Loading…

gridDnD: Drag a row to copy/move to another grid #152

Merged
merged 1 commit into from

2 participants

@amirulali
  • added dragcopy option to enable
  • dragcopy is boolean
@amirulali amirulali gridDnD: Drag a row to copy/move to another grid.
- added dragcopy option to enable
- dragcopy is boolean
d14bf7e
@tonytomov tonytomov merged commit b3d849b into tonytomov:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 25, 2011
  1. @amirulali

    gridDnD: Drag a row to copy/move to another grid.

    amirulali committed
    - added dragcopy option to enable
    - dragcopy is boolean
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/grid.jqueryui.js
View
3 js/grid.jqueryui.js
@@ -368,7 +368,7 @@ $.jgrid.extend({
if(opts.onstart && $.isFunction(opts.onstart) ) { opts.onstart.call($($t),ev,ui); }
},
stop :function(ev,ui) {
- if(ui.helper.dropped) {
+ if(ui.helper.dropped && !opts.dragcopy) {
var ids = $(ui.helper).attr("id");
$($t).jqGrid('delRowData',ids );
}
@@ -447,6 +447,7 @@ $.jgrid.extend({
"appendTo" : "#jqgrid_dnd",
"zIndex": 5000
},
+ "dragcopy": false,
"dropbyname" : false,
"droppos" : "first",
"autoid" : true,
Something went wrong with that request. Please try again.