Click here to Skip to main content
15,912,756 members

Comments by Member 12249738 (Top 2 by date)

Member 12249738 25-Jan-16 4:11am View    
I'm using below code having two treeviews, left and right. I want to restrict the movement of parent nodes. So that they cannot be moved. And that the child nodes can be moved only to the parent nodes but not to other child nodes.


<script>
$("#treeview-left").kendoTreeView({
dragAndDrop: true,
dataSource: [
{ text: "Furniture", expanded: true, items: [
{ text: "Tables & Chairs" },
{ text: "Sofas" },
{ text: "Occasional Furniture" }
]
},
{ text: "Decor", items: [
{ text: "Bed Linen" },
{ text: "Curtains & Blinds" },
{ text: "Carpets" }
]
}
]
});

$("#treeview-right").kendoTreeView({
dragAndDrop: true,
dataSource: [
{ text: "Storage", expanded: true, items: [
{ text: "Wall Shelving" },
{ text: "Floor Shelving" },
{ text: "Kids Storage" }
]
},
{ text: "Lights", items: [
{ text: "Ceiling" },
{ text: "Table" },
{ text: "Floor" }
]
}
]
});

<style>
#treeview-left,
#treeview-right
{
overflow: visible;
}
</style>
</div>
Member 12249738 14-Jan-16 5:32am View    
thanx for the help.