EasyUI Forum
May 17, 2024, 11:58:11 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: Parent of source argument OnDrop is null (tree)  (Read 6630 times)
hahamed
Newbie
*
Posts: 13


View Profile
« 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: 2264


View Profile Email
« 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


View Profile
« Reply #2 on: February 01, 2016, 09:20:03 PM »

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  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!