EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Pierre on March 07, 2014, 12:45:36 AM



Title: Drag-Drop between 2 datagrid
Post by: Pierre on March 07, 2014, 12:45:36 AM
Hello all
is there any simple example of how drag-drop between 2 datagrids?
I have solved basics, using onStartDrag and onDrop events, but how to drop into empty grid?
Thank you.


Title: Re: Drag-Drop between 2 datagrid
Post by: Pierre on March 10, 2014, 01:48:18 AM
I added enableDnd property to both datagrid's and it drag/drop works, but I still don't know how to drop to empty datagrid?
Thanks.


Title: Re: Drag-Drop between 2 datagrid
Post by: Pierre on March 13, 2014, 12:03:19 AM
Anybody, please?


Title: Re: Drag-Drop between 2 datagrid
Post by: stworthy on March 13, 2014, 06:39:29 AM
Please try to download the latest file from http://jeasyui.com/extension/datagrid_dnd.php.


Title: Re: Drag-Drop between 2 datagrid
Post by: Pierre on March 13, 2014, 07:21:51 AM
Hello
Thank you, it works perfect, but only for first time :(
When I delete dropped row and if I have empty grid again, it display "not allowed" icon and drop is not possible.
Thank you again.


Title: Re: Drag-Drop between 2 datagrid
Post by: stworthy on March 13, 2014, 08:00:44 AM
If the datagrid is empty, you need to call 'enableDnd' method again to make the datagrid accept dropping rows.


Title: Re: Drag-Drop between 2 datagrid
Post by: Pierre on March 13, 2014, 08:34:57 AM
Yeesss.. thanks!


Title: Re: Drag-Drop between 2 datagrid
Post by: Pierre on March 18, 2014, 01:03:37 AM
Stworthy
could you please also adopt Tree to accept drop when is empty, like grid do?
Thank you.