1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    74
    Vote Rating
    2
    url is on a distinguished road

      0  

    Default Unanswered: Restricting the child of parent to drop in other parent nodes of tree

    Unanswered: Restricting the child of parent to drop in other parent nodes of tree


    Hi All,

    I have a treepanel with nested parents and child inside it. I am using treeviewdragdrop plug-in to re-arrange the nodes.

    My requirement is to restrict the child of one parent should not be dropped in other parent.
    Can anybody suggest me how to achieve?
    Regards URL

  2. #2
    Touch Premium Member
    Join Date
    Mar 2011
    Posts
    133
    Vote Rating
    12
    Answers
    17
    chamacs will become famous soon enough

      0  

    Default


    Listen to the plug-in's 'beforedrop' event to do the evaluation. If the 'test' fails return false from the event to stop it. See the API docs for more info on the event.

Thread Participants: 1

Tags for this Thread