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

Drag & Drop issues in TreeView

1 Answer 58 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Igor
Top achievements
Rank 1
Igor asked on 12 Sep 2012, 06:31 PM
Hello, I am having some issues with TreeView that I need help resolving:

Issue #1: 

Below code works, and sprites show up, until you drag an item. After that <span> tags get stripped.
<ul id="hosts">
    <li id="host1"><span class="maas-sprite server"></span>host1</li>
    <li id="host2"><span class="maas-sprite server"></span>host2</li>
    <li id="host3"><span class="maas-sprite server"></span>host3</li>
</ul>
  
$('#hosts').kendoTreeView({
        dragAndDrop: true,
});


Issue #2:

When moving last item from one TreeView to another, it is impossible to drag anything back.

How do i fix this?? 

1 Answer, 1 is accepted

Sort by
0
Igor
Top achievements
Rank 1
answered on 13 Sep 2012, 04:01 PM
Ok, I solved issue #1 by using "spriteCssClass" property in my data source.
But i still havent solved the issue #2 with being unable to drag elements back into a now empty treeview. 
Tags
TreeView
Asked by
Igor
Top achievements
Rank 1
Answers by
Igor
Top achievements
Rank 1
Share this question
or