AllDropTargetsValid seems very slow :(

Jul 24, 2009 at 7:05 AM

Firstly, I love the library. So easy to use and works really well, until I added alldroptargetsvalid to true on one of my buttons. Have about 50 Valid targets and the UI crawls. Is there something I am doing wrong?

I need that many droptargets, because they are timeslots.

Jul 24, 2009 at 3:59 PM

Hm, 50 targets shouldn't make the UI crawl I'd say... can you send me an example project?  I'll try and have a look at it :)

Jul 24, 2009 at 5:04 PM
Edited Jul 24, 2009 at 8:13 PM

Thanks for your response, but over and above the 50 targets, there is a whole lot of other target too. Here is a link to a screenshot of the application. Its basically just an online application that creates, edits and deletes meeting.

It uses webdav to talk to an exchange server.


Here is the link

I just noticed that even if I turn off alldroptargetsvalid and set the targets manually. It still lags.

I tried to debug the DragSource class and noticed that this method CheckIfIAmInDropTarget() is the problem. It is recursing through the entire visual treet on move move and laggin the drag event.

I disable the CheckIfIAmInDropTarget() in the mouse move and added it as the first line in the LeftButtonUp event.

Now it doesnt lag anymore, but the events that monitor the source entered and left actions dont fire off.

Let me know if you have any ideas to turn them back on.

Jul 30, 2009 at 9:44 PM

Hi there - I just added a "AllowPositionSave"-property on DropTargets to the sourcecode.  This should solve this issue! :)

More info: