EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 21, 2024, 11:13:20 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
[SOLVED] Drop as last record to datagrid or treegrid
Pages: [
1
]
« previous
next »
Print
Author
Topic: [SOLVED] Drop as last record to datagrid or treegrid (Read 8469 times)
Pierre
Sr. Member
Posts: 439
[SOLVED] Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
Reply #3 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?
Logged
jarry
Administrator
Hero Member
Posts: 2264
Re: Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
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
Re: Drop as last record to datagrid or treegrid
«
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
Re: [SOLVED] Drop as last record to datagrid or treegrid
«
Reply #8 on:
April 07, 2016, 10:20:18 PM »
Awesome.
Thank you so much.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...