EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on April 07, 2016, 10:56:21 PM



Title: Copy record using drag/drop
Post by: Pierre on April 07, 2016, 10:56:21 PM
Hello all
Is there option to copy record(s) from treeGrid-A to treeGrid-B using drag/drop?
Have found solution (on this forum) for tree:
Code:
	onBeforeDrop: function(target,source,point){
if( source.attributes.source == 'person_tree' ){
toAppend = $.extend(true,{},source);
toAppend.attributes.source = 'big_tree';
$(this).tree('append', {
parent: target,
data: toAppend,
});
return false;
}
}

With other words, it should work same as existing drag/drop except source record(s) should not be deleted.
Thank you.


Title: Re: Copy record using drag/drop
Post by: Pierre on April 13, 2016, 01:35:19 AM
Anyone, please?  ???