Hi,
I have a problem with my application. I implemented DrawFilter class which is used in DragAndDrop operation. There are three Drawing states. First is when cursor is on node, second is when node is below node and last is when cursor is over node.
When I was testing I found that when cursor is over node text for this node disappears, but image is displaying normally.
What should I do?
Hi PoKrec,
Have you tried running your sample, after disabling the FullRowSelect property? Please let me know that this has worked for you. I have determined that this property is preventing the BackColor of the Continent nodes from drawing when they are being hovered over with a child node. Specifically, it appears to be affecting how the mvarDropHighLight is drawn, this determines the BackColor and ForeColor of the node being dragged over. The code which determines the BackColor for such nodes is being completely ignored, when FullRowSelect is being implemented. The ForeColor will also be ignored in your sample, unless you explicitly determine a color to draw, for example, drawParams.AppearanceData.ForeColor = System.Drawing.Color.Yellow; will atleast render the text as yellow, however the background color will not still not be drawn. I am still in the process of determining the root cause of this issue.
I will update this thread as any further details become available regarding this anomaly.
If you have any questions at all regarding this issue, please let me know.
Sincerely,
Chris K
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
I have reviewed the sample that you provided and I see that you are implementing the FullRowSelect property for the UltraTree, (ultraTree1.FullRowSelect = True). This property, when active, appears to be interfering with the DrawFilter process for parent nodes within the UltraTree, for this sample. I will continue to further investigate this issue, but it appears that you will be able to quickly circumvent the interference by setting this property to false.
here is an example.
I used your project sample to show the problem.
When doing Drag and drop operation you can see that when mouse cursor is on some node the text is invisible.
As Mike mentioned, it will be possible to determine a more accurate solution by reviewing a sample project which reproduces this issue. Would you be able to provide us with a sample project for such a review?
It's impossible to guess without seeing a sample so I can debug your code. But if the node is disappearing, then your DrawFilter must be preventing the node from drawing for some reason. Make sure you are not returning True from the DrawElement method, since returning True tells the element not to do any drawing of it's own.