Drop after/before problem

4 posts, 0 answers
  1. Tal
    Tal avatar
    11 posts
    Member since:
    Jan 2009

    Posted 01 Feb 2009 Link to this post


    I am trying to prevent dropping of items on level other than their own , i.e., items on a specific level cannot be moved to level above or below). For this, I am working with PreviewDragEnded and if the item is not being dropped to the same level, i prevent it by setting e.Handled to true. It works fine when DropPosition is DropPosition.Inside. However, when the DropPosition is After or Before, the TargetDropItem is null ,for some reason, and I cannot check the level to which the item is dropped. The TargetDropItem gets a value on DragEnded event but it's already too late. Is there a way to do it?
    Thank you,
  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 02 Feb 2009 Link to this post

    Hi Tal,

    There is a known bug that affects the scenario you described. It is scheduled to be fixed for our Q1 release, so please bear with us.

    Kind regards,
    Tihomir Petkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Marc
    Marc avatar
    1 posts
    Member since:
    Jun 2009

    Posted 05 Jun 2009 Link to this post


    I'm evaluating the TreeView for my current project and have a similar task to do.

    When will the bug, that the target item is null be fixed? I downloaded the controls library this week but this behaviour still seems to exist :(

    Kind regards,
  4. Bobi
    Bobi avatar
    513 posts

    Posted 05 Jun 2009 Link to this post

    Hi Marc,
    We are very apologize for the caused inconvenience. This issue is already fixed and the change will be reflected in the next internal build.

    Kind regards,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top