EasyUI Forum
September 14, 2025, 03:35:25 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Copy record using drag/drop  (Read 5504 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« 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.
« Last Edit: April 08, 2016, 12:28:42 AM by Pierre » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 on: April 13, 2016, 01:35:19 AM »

Anyone, please?  Huh
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!