Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TreeView > Disable automatic moving of items

Not answered Disable automatic moving of items

Feed from this thread
  • Scott Waye avatar

    Posted on Dec 20, 2011 (permalink)

    Hi,

    Im using the DropQueryEvent and DropInfoEvent in my tree view to enable drag/drop of nodes.  It works fine and the items move ok, but when items are dropped I execute some database operations and in the case where these operations fail, I do not want the item to be moved.  I am happy to do the moving of tree nodes myself when the database operation completes, but to do that I need to disable the built in mechanism.  Is it possible?

    Thanks,

    Scott

    Reply

  • Tina Stancheva Tina Stancheva admin's avatar

    Posted on Dec 23, 2011 (permalink)

    Hi Scott,

    The RadTreeView control has a built-in drag/drop functionality that exposes a number of events that allow you to customize it. You can find more info here. In your case you can handle the PreviewDragEnded event to stop the drop operation and implement your database-related logic. And then manually move the tree node per your requirements.

    Please give this approach a  try and let me know if it works for you or if I'm missing something.

    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > TreeView > Disable automatic moving of items
Related resources for "Disable automatic moving of items"

Silverlight TreeView Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]