In a previous post on here, I wrote about implementing drag and drop and sorting on 2 listviews. I've been able to resolve that issue.
The issue I'm having now is, I need to update the listview after the items have been reordered. I have sub items under the items that are getting dragged over. When I reorder the items, it messes up the appearance. See the attached images.
Here are my template for the items:
<script id="selected-item-template" type="text/x-kendo-template">
<div class="item">
<div style="float: right;"><i class="fas fa-fw fa-trash" onclick="removeSelected('${Id}')"></i></div>${Name}
</div>
#= renderMySlideTemplates(data) #
</script>
<script id="sub-item-my-template" type="text/x-kendo-template">
# $.each(data.PDFSlides, function(index, item){
#
<div class="sub-item">
<input type="checkbox" name="cbxSlideSelection" value="${item.Id} " /> ${item.Title}
</div> #
});
#
</script>
Does anyone have any suggestions?