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

    Hi,

    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,
    Tal
  2. Tihomir Petkov
    Admin
    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

    Hi,

    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,
    Marc
  4. Bobi
    Admin
    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,
    Boryana
    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