Blocking a drop operation

2 posts, 0 answers
  1. zAxis
    zAxis avatar
    13 posts
    Member since:
    Aug 2010

    Posted 08 Apr 2011 Link to this post

    How can I drag/drop nodes within a treeview, but block the drop (or change the destination index) for some locations.

    I have a treeview which is used to manage job scheduling set up with the level 0 nodes being foremen and level 1 nodes as jobs.
    The job nodes at the top of the list for each foreman have a custom attribute on them to denote that it is started and they are not draggable.  I need to either block dropping the unstarted jobs in the middle of the started ones or change the destination index to the first one after the last started job.

  2. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 13 Apr 2011 Link to this post

    Hi zAxis,

    I have attached a sample page with a simple drag and drop between two RadTreeViews as well as comments where you would need to implement the check if the node can be dropped or not. Here you can read more about client-side events of the RadTreeView

    All the best,
    Kate
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top