Hi,
I need the drag and drop behavior shown in SDK examples. Here a seperate DrawFilter is implemented. Does infragistics supply a default DrawFilter like the one in the example. It seems a bit complicated for me to have to implement and code my own draw filter.
regards
Stefan
No, there is no default IUIElementDrawFilter implementation. Actually, the IUIElementDrawFilter interface solves the general problem of custom drawing, and the WinTree Drag Drop sample just happens to make use of it.
The actual drag drop code is very simple, so you don't necessarily need to implement the IUIElementDrawFilter interface to enable drag/drop capability. You can get a general idea of how drag drop is implemented by examining the code in the SelectionDragStart, DragOver, QueryContinueDrag, and DragDrop event handlers. If you have any specific questions, you can post here an we will try to help.
Brian, Do you know where can get the implementation code of selectiondragstart of UltraTree?
I met a problem about the dragdrop behavior in ultratree, here is the detail:
In the ultratree I create, each tree node is displayed with two cells, which makes the tree looks like a table with two columns.
now we want the drag operation can be started when either of the cells of a tree node or a row of the tree(which is actually a tree node selected ) selected and draged, while the selectionDragStart event can only be fired when a row of the tree selected, how can we make the drag operation fired when eithe cell of a tree node selected? Thank you in advance :)