I am using the sample code from the UltraTree Drag and Drop that uses the DropHighLight DrawFilter as a basis for a project.
. . . . \Samples\Win\WinTree\VB\UltraTree Drag and Drop VB\
I began seeing some odd behavior with the drop position indicator line from the draw filter in my project and assumed that I had "broken" something along the way.
I went back to the native sample code and it exhibits the same behavior.
I am running VS 2008 version 9.0.21022.8 RTM and Infragistics NetAdvantage 8.0 for CLR 2.0
Here's the odd behavior.
Open the sample application and start to drag the first "country" item down the list (slowly) and notice the position of the drop indicator bar relative to the tip of the mouse pointer. If I'm not crazy or not seeing things - then you should see the bar begin to get farther and farther away from the mouse pointer.
It helps if you resize the window so that all items are visible but not required to repeat the behavior because the faster "scroll jump" doesn't affect the "gap".
If anyone has already tackled why this is happening - I would LOVE to know a fix / workaround.
Thanks !!
Stephen
Hi Stephen,
Just be sure to check that the GetUIElement method returns an element (not null) before you try to get the rect. The method will return Null if the node is not in the viewable area of the tree. :)
Thanks Mike.
For the project I'm working on (and the time frame involved) I'll try the GetUIElement and see how that works. But for future reference I'll also sumbit an Incident as you suggested.
Thanks Again.
This is a known bug in the tree. The Bounds property of the node was broken recently and it is no longer returning the correct rect of the node, so the drawfilter in the sample is drawing things in the wrong place.
If you really want to fix the sample, you could use the node's GetUIElement method and get the Rect from that and use that anywhere node.Bounds is used. Or you could just wait for the next hot fix and the issue will be corrected.
If you want to be notified when the private hot fix is available, you should Submit an incident to Infragistics Developer Support. You can tell them you are reporting issue BR33515 and want to be notified when the fix is available. :)