This is a migrated thread and some comments may be shown as answers.

Drop after/before problem

3 Answers 75 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tal
Top achievements
Rank 1
Tal asked on 01 Feb 2009, 05:20 PM
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

3 Answers, 1 is accepted

Sort by
0
Tihomir Petkov
Telerik team
answered on 02 Feb 2009, 03:51 PM
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.
0
Marc
Top achievements
Rank 1
answered on 05 Jun 2009, 09:05 AM
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
0
Bobi
Telerik team
answered on 05 Jun 2009, 10:55 AM
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.
Tags
TreeView
Asked by
Tal
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Marc
Top achievements
Rank 1
Bobi
Telerik team
Share this question
or