EasyUI Forum
May 17, 2024, 09:26:33 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: Need help with droppable  (Read 6270 times)
y.bykov
Newbie
*
Posts: 49


View Profile
« on: August 03, 2017, 10:31:30 PM »

I use datagrid in center & east layout region. It's look like Far or TC. When I try to drag-&-drop one line on another line I have got unstable result.
For example:
1) if source line and destination line in center region it's ok;
2) if source line in east region and destination line in center region it's ok;
3) if source line and destination line in east region it's error every time, show that destination in center region, but it's in east;
4) if source line in center region and destination line in east region it's unstable behaviour, sometimes show center, sometimes east.

It's look like wrong destination detection.
P.S. I don't use any z-index values.
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #1 on: August 03, 2017, 11:40:20 PM »

More capture
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #2 on: August 05, 2017, 02:27:09 AM »

I try this one http://www.jeasyui.com/forum/index.php?topic=5686.0
It's work fine when use 2 datagrids vertically, but in horizontal layout it catch error:

Code:
Uncaught TypeError: Cannot read property 'options' of undefined
    at _39 (jquery.easyui.min.js:389)
    at HTMLDocument._49 (jquery.easyui.min.js:483)
    at HTMLDocument.dispatch (jquery-1.11.3.min.js:4)
    at HTMLDocument.r.handle (jquery-1.11.3.min.js:4)

Bug with layer detection.
« Last Edit: August 05, 2017, 02:29:08 AM by y.bykov » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 on: August 06, 2017, 08:04:07 AM »

Please download the patch from https://www.jeasyui.com/download/downloads/jquery-easyui-1.5.2-patch.zip. Make sure to download the newest 'datagrid-dnd.js' file from https://www.jeasyui.com/extension/datagrid_dnd.php
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #4 on: August 08, 2017, 05:38:01 AM »

Thank you!
It's fix some errors but stay unstable.
Some rows can be losted when d-n-d (return to source datagrid or disappear)
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #5 on: August 09, 2017, 06:12:06 AM »

Please look at this example http://code.reloado.com/avorob4/edit#preview. It works fine.
Logged
y.bykov
Newbie
*
Posts: 49


View Profile
« Reply #6 on: August 09, 2017, 07:10:04 AM »

Thanks for help!
I think the main reason of stable work is
Code:
data:$.extend(true,{},data),
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!