1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    46
    Vote Rating
    0
    eaglefox12 is on a distinguished road

      0  

    Default Unanswered: how to remove newly added leaf from a tree

    Unanswered: how to remove newly added leaf from a tree


    I need to remove a leaf on a tree when it is dragged onto a node (on failure ajax call)...
    Code:
    overModel.newChildNode[0].remove();
    but it says undefined.

    How can I remove a new added leaf from a tree node

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,627
    Answers
    612
    Vote Rating
    399
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    When you are trying to delete the mode in the code? Does it exist yet?

    More info (or a working test case) would be helpful.

    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    46
    Vote Rating
    0
    eaglefox12 is on a distinguished road

      0  

    Default


    Yes Scott... it does... this is what actually happens... I have two tree panel... when a user drags a leaf from one tree to another... an ajax call is made. When it successfully writes to the database, it opens a success window. now when the ajax call fails, I get the "data not recorded" window, But the leaf is still dropped on the tree, so on my 'fail' ajax call, I want to delete the leaf that was just added to the node.
    Quote Originally Posted by scottmartin View Post
    When you are trying to delete the mode in the code? Does it exist yet?

    More info (or a working test case) would be helpful.

    Scott.

  4. #4
    Sencha User
    Join Date
    Sep 2012
    Posts
    46
    Vote Rating
    0
    eaglefox12 is on a distinguished road

      0  

    Default


    Any insights on this issue guys???

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar