|
Title: [SOLVED] Drop as last record to datagrid or treegrid Post by: Pierre on March 29, 2016, 12:54:47 AM Hello,
is it possible to drop on datagrid or treegrid area if I did not selected a record where I want to drop the record? With other words - If I drag from one datagrid to other datagrid and if my mouse is in the other grid area, I want that record is dropped (when I release a button) on end of the records so I must not select (each time) last record? On that way I can work much faster. Thank you. Title: Re: Drop as last record to datagrid or treegrid Post by: Pierre on April 05, 2016, 01:50:04 AM Hello
If you have many records to drag/drop, it will be very helpful feature ... Development, please? Title: Re: Drop as last record to datagrid or treegrid Post by: jarry on April 06, 2016, 09:27:10 AM Please download the 'datagrid-dnd.js' file from http://www.jeasyui.com/extension/datagrid_dnd.php
Title: Re: Drop as last record to datagrid or treegrid Post by: Pierre on April 06, 2016, 01:22:32 PM Hello
thank you but it does not work 100% correct :'( I declared 2 tables and if second table is empty, I can not drop anything to that table. If second table have at least 1 record, then it works perfect. Is it possible to drop also on empty table? Title: Re: Drop as last record to datagrid or treegrid Post by: jarry on April 06, 2016, 03:26:41 PM If your datagrid is empty, you need to call enableDnd method after creating it.
Title: Re: Drop as last record to datagrid or treegrid Post by: Pierre on April 06, 2016, 10:16:15 PM Perfect - I call enableDnd in the "onBeforeLoad" event and it works perfect.
Thank you! Title: Re: Drop as last record to datagrid or treegrid Post by: Pierre on April 07, 2016, 03:52:07 AM Jarry
any chance to drop on empty treegrid? Title: Re: Drop as last record to datagrid or treegrid Post by: jarry on April 07, 2016, 08:44:20 PM You can download the 'treegrid-dnd.js' file from http://www.jeasyui.com/extension/treegrid_dnd.php
Title: Re: [SOLVED] Drop as last record to datagrid or treegrid Post by: Pierre on April 07, 2016, 10:20:18 PM Awesome.
Thank you so much. |