EasyUI Forum
May 21, 2024, 11:13:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [SOLVED] Drop as last record to datagrid or treegrid  (Read 8469 times)
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« 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.
« Last Edit: April 07, 2016, 10:20:01 PM by Pierre » Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #1 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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #2 on: April 06, 2016, 09:27:10 AM »

Please download the 'datagrid-dnd.js' file from http://www.jeasyui.com/extension/datagrid_dnd.php
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #3 on: April 06, 2016, 01:22:32 PM »

Hello
thank you but it does not work 100% correct  Cry
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?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #4 on: April 06, 2016, 03:26:41 PM »

If your datagrid is empty, you need to call enableDnd method after creating it.
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #5 on: April 06, 2016, 10:16:15 PM »

Perfect - I call enableDnd in the "onBeforeLoad" event and it works perfect.
Thank you!
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #6 on: April 07, 2016, 03:52:07 AM »

Jarry
any chance to drop on empty treegrid?
Logged
jarry
Administrator
Hero Member
*****
Posts: 2264


View Profile Email
« Reply #7 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
Logged
Pierre
Sr. Member
****
Posts: 439


View Profile Email
« Reply #8 on: April 07, 2016, 10:20:18 PM »

Awesome.
Thank you so much.
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!