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

drag/drop crash, maybe a DragAndDropManager bug?

1 Answer 42 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Frédéric
Top achievements
Rank 1
Frédéric asked on 03 Oct 2009, 10:43 PM
Hi

I think I found a bug involving drag/drop on the radscheduler.
The synopsis is with RadPanel and RadScheduler. I drag an item from the panel and drop it on the scheduler and build an Appointment
It's working fine in general.

But if I slowly move the drag cue on an existing Appointment, immediatly when the cursor moves on the text displayed, the DragAndDropManager crashes. It works fine if I don't display Appointment.Subject.

I was able to solve the issue by creating an appointment template like this:

 

 

<DataTemplate x:Key="AppointmentTemplate">

 

 

 

<Border>

 

 

 

<TextBlock x:Name="PART_SubjectTextBox" Text="{Binding Path=Occurrence.Appointment.Subject}"></TextBlock>

 

 

 

</Border>

 

 

 

</DataTemplate>

 


 But I can't see any reason this solves the problem.
Please find bellow the crash report provided par VS if it may help.

My system is .NET 3.5, Windows XP Pro French.
---------------------------------

System.NullReferenceException was unhandled by user code
  Message="La référence d'objet n'est pas définie à une instance d'un objet."
  Source="Telerik.Windows.Controls"
  StackTrace:
       à Telerik.Windows.Controls.DragDrop.RadDragAndDropManager.<FindDropZones>b__2(HitTestResult el) dans c:\Builds\WPF_Scrum\Core_WPF_2009_Q2_SP1\Sources\Development\Core\Controls\DragDrop\RadDragAndDropManager.cs:ligne 1148
       à System.Windows.Media.Visual.HitTestPointInternal(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters hitTestParameters)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTestPoint(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, PointHitTestParameters pointParams)
       à System.Windows.Media.Visual.HitTest(HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback, HitTestParameters hitTestParameters)
  InnerException:

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 05 Oct 2009, 06:30 AM
Hi Frédéric,

Yes, unfortunately there is a bug in the DragDrop (an unchecked cast in one of the methods) in the Q2 SP1 version. It will crash every time you drag over the text of an editable TextBox.

The issue has been resolved in all builds after 20 aug.

You should not have this issue with the Latest Internal Build or the beta.

I am sorry for the inconvenience,

Sincerely yours,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
DragAndDrop
Asked by
Frédéric
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or