Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    81
    Answers
    1
    Vote Rating
    3
      0  

    Default 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
    Sencha Premium User
    Join Date
    Mar 2011
    Posts
    287
    Answers
    35
    Vote Rating
    46
      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.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •