This is a migrated thread and some comments may be shown as answers.

TreeView Drag and Drop Not Behaving Correctly Inside Combobox

3 Answers 79 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Caleb Sandfort
Top achievements
Rank 1
Caleb Sandfort asked on 12 Dec 2012, 12:38 AM
Hi

I have a TreeView inside of a ComboBox and have turned on EnableDragAndDrop and EnableDragAndDropBetweenNodes.  I'm able to drag the nodes and drop them, but I am not getting the little underline image that normally shows up when you move a node between two other nodes to let you know where you will be dropping the dragging node.

Looking at the html, it looks like this is handled by a div with the class "rtDragClue", which has it's visibility toggled, but is not showing up anywhere that I can see it.

Has anyone had this problem and been able to fix it?

Thanks

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 14 Dec 2012, 04:15 PM
Hello,

Please apply the following styles to your project in order to show the line that shows on drop:

<style type="text/css">
        .rtDropAbove,
        .rtDropBelow {
            z-index: 6500;
        }
    </style>


Regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Caleb Sandfort
Top achievements
Rank 1
answered on 14 Dec 2012, 05:12 PM
Thank you very much that worked like a charm.   I'm now having trouble with the little connector lines between items not showing either. They looks to be governed by the class "rtSp".  I tried applying the same fix to that class as well, but it did not work.  Any thoughts.  I'm using the Metro skin.

Thanks
0
Boyan Dimitrov
Telerik team
answered on 19 Dec 2012, 01:40 PM
Hello,

An easy and convenient way of showing those lines would be applying a border style since its default behavior is intended  to be invisible for the metro skin. Please try the following code snippet to achieve that appearance effect:

.RadTreeView .rtSp {
            border-left: 1px solid black;
        }


Kind regards,
Boyan Dimitrov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeView
Asked by
Caleb Sandfort
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Caleb Sandfort
Top achievements
Rank 1
Share this question
or