[CLOSED] While copying node from source treeview to destination treeview disallow it's child nodes

  1. #1

    [CLOSED] While copying node from source treeview to destination treeview disallow it's child nodes

    In OnBeforeDrop function, what I have done is if the node has child nodes it asks user if he wants to copy child nodes along with it too, if the user clicks on NO, then I have implement this code snippet
    data.records[0].childNodes.copy=false
    dropFunction.processDrop();
    Then in OnDrop function, I am checking if the childnode copy property of recently added node's is set to be false and if it is false I am trying to remove them one by one by using following code snippet

    if (data.records[0].childNodes.copy == undefined) {
            for (var x = 0; x < data.records[0].childNodes.length; x++) {
                data.records[0].getChildAt(x).destroy();
            }
        }
    But this one is not working.

    What I have also figured out that, though I have set the childnode copy property is set to false in OnBeforeDrop function, it is set as undefined in OnDrop function.

    Am I missing something??? It is urgent.
    Last edited by Daniil; Apr 30, 2013 at 4:24 AM. Reason: [CLOSED]
  2. #2

Similar Threads

  1. [CLOSED] Create a form in each node to treeview.
    By stoque in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 28, 2011, 9:18 PM
  2. [CLOSED] How raise server side event while selecting a node in treeview
    By Satyanarayana murthy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 17, 2009, 2:32 AM
  3. How to expand all child nodes for current node?
    By dbassett74 in forum 1.x Help
    Replies: 2
    Last Post: May 26, 2009, 2:53 PM
  4. Obtain clicked node TreeView
    By jpbelli in forum 1.x Help
    Replies: 3
    Last Post: Jan 29, 2009, 11:55 AM
  5. [CLOSED] Running function on node click in TreeView
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jan 07, 2009, 5:58 PM

Posting Permissions