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

SetAllowDrag crash

2 Answers 65 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 11 Feb 2010, 09:32 AM
hello

I get a NullReferenceException when doing this:

RadDragAndDropManager.SetAllowDrag(this, true);

 


I tried with:

 

RadDragAndDropManager.SetAllowDrop(this, true);

 


This is working fine

I also tried:

this.SetValue(RadDragAndDropManager.AllowDrag,true);

This line crash as well

Does anybody have an idea?

 

 

2 Answers, 1 is accepted

Sort by
0
Frédéric
Top achievements
Rank 1
answered on 11 Feb 2010, 04:32 PM
I found the solution


following a bad management of our splash screen, it appeared that Application.Current.MainWindow arrived null

this caused a Telerik internal function to scrash

I just set it to the main page of the application and it went right



I suggest that Telerik make a specific test in order to get a cleaner error message
0
Tihomir Petkov
Telerik team
answered on 12 Feb 2010, 01:50 PM
Hello Frédéric,

Thank you for your feedback. We will improve the exception in this scenario.

All the best,
Tihomir Petkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DragAndDrop
Asked by
Frédéric
Top achievements
Rank 1
Answers by
Frédéric
Top achievements
Rank 1
Tihomir Petkov
Telerik team
Share this question
or