Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by R. Janssen on Jul 08, 2009 07:15
open dhtmlx forum
Internet Explorer 8 - Drag & Drop in xTree

When dragging an item in the tree it will also select any text it has passed (originating point to mouse location). Is there any way to disable this so it looks the same on for example FireFox?

Answer posted by Alex (support) on Jul 08, 2009 07:36

Could you please provide the demo sample.

during the drag-n-drop tree behaves in the same way - it always highlight the target item. So, it means the behavior, that is demonstrated in IE, is correct.  Please, check the sample:

http://dhtmlx.com/docs/products/dhtmlxTree/samples/drag_n_drop/pro_mercy_drag.html

The style of the "dragIn" item is set in the selectionBox class, dhtmlxtree.css:

.selectionBox{
  background-color: #FFFFCC;
}


Answer posted by R. Janssen on Jul 08, 2009 07:40

The demonstration xTree's on the front page of your site have the same problem. Text selection occurs during drag, some examples on different pages however don't.

 

Answer posted by R. Janssen on Jul 08, 2009 07:46

Attached is a small jpg which shows the problem at hand.

Browser is IE 8. Doesn't happen on FireFox (No text selection during drag).

 

Attachments (1)
Answer posted by Alex (support) on Jul 08, 2009 09:11

Hello,

we have managed to re-create the issue. Please, try to set background color for the tree container. That can fix the issue:

   tree.allTree.style.backgroundColor="white";

Answer posted by R. Janssen on Jul 09, 2009 00:18

Changing the background color did not solve the issue.

 

Answer posted by Alex (support) on Jul 10, 2009 03:06

Hello, 

Locally we can't re-create problem if the background is set. Please, provide any sample.