EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
April 22, 2026, 10:52:23 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
>
General Discussion
>
Parent of source argument OnDrop is null (tree)
Pages: [
1
]
« previous
next »
Print
Author
Topic: Parent of source argument OnDrop is null (tree) (Read 13802 times)
hahamed
Newbie
Posts: 13
Parent of source argument OnDrop is null (tree)
«
on:
February 01, 2016, 02:38:28 AM »
Hello, my code is:
Code:
onDrop: function (target, source, point) {
var parent = $(this).tree('getParent', source.target);
// parent become null
Why parent become null?
thanks
Logged
jarry
Administrator
Hero Member
Posts: 2307
Re: Parent of source argument OnDrop is null (tree)
«
Reply #1 on:
February 01, 2016, 06:43:13 AM »
The onDrop event fires after a node is dropped. The source node has been moved. You can not access it by .target property. To get the moved node, please call find method with the id value of the special node.
Logged
hahamed
Newbie
Posts: 13
Re: Parent of source argument OnDrop is null (tree)
«
Reply #2 on:
February 01, 2016, 09:20:03 PM »
Quote from: jarry on February 01, 2016, 06:43:13 AM
The onDrop event fires after a node is dropped. The source node has been moved. You can not access it by .target property. To get the moved node, please call find method with the id value of the special node.
very thanks
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...