Hi Scott,
Greetings from Syncfusion support.
We have checked your reported problem that dragging a TreeView node that produce the scroller in the output web page. Currently, we don’t have any property to prevent the scroll when drag a TreeView node. However, we have already consider this as a feature from our end. It will be included in our Volume 2 Release which is expected to be released at the June 2020.
Track the below link to know the feature status.
But, you can resolve your issue by setting the target for dragArea of TreeView’s drag object in the created event. When setting the target, you can drag the element only inside the target element. It prevents the element from scrolling exceeding that element.
Refer the below code snippet.
public void create()
{
JSRuntime.InvokeAsync<string>("TreeView_action");
}
Host.cshtml
<script>
function TreeView_action() {
var treeview = document.getElementById("treeview").ej2_instances[0];
treeview.dragObj.dragArea = ".control_wrapper";
}
</script> |
Refer the below sample link.
You can use the above solution until the feature included in TreeView component.
We appreciate your patience until then.
Regards,
Sowmiya.P