Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
468
Unable to perform drag and drop in tree view
posted

I have an application that had a windows tree view that was replaced with an infragistics tree view. I'm using QTP 9.2 and the application is coded in C#. My issue is as follows:

I have a SwfTreeView that I cannot seem to perform any drag and drop actions on. .Net spy sees the object as an Infragistics.Win.UltraWinTree.UltraTree. I used the following lines of code to highlight the node then drag the node to another location and drop it but nothing happens. Can someone shed some light on what is happening? Thank you.

SwfWindow("Bonus Administrator").SwfTreeView("selectionTree").Select "PCG Bonus;Total Miklos;Interior;010551 - Indianapolis Interior"
SwfWindow("Bonus Administrator").SwfTreeView("selectionTree").DragItem "PCG Bonus;Total Miklos;Interior;010551 - Indianapolis Interior"
SwfWindow("Bonus Administrator").SwfTreeView("selectionTree").DropOnItem  "PCG Bonus;Total Miklos;Interior;010555 - Bay Area Interior 55/65"