New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Control the Height of an Empty Drop Zone in a TreeView

Environment

Product Version 2020.1.114
Product Telerik UI for ASP.NET MVC TreeView

Description

How can I increase the height of a Telerik UI for ASP.NET MVC TreeView's drop zone? Additionally, is there a way to set a border?

Solution

In order to modify an empty Kendo UI TreeView's drop zone to make it more accessible for newly dropped items, set a minimum height to a certain value with the HTMLAttributes. Additionally, you can set a border to your preferences in the same settings:

    @(Html.Kendo().TreeView()
        .Name("treeview")
        .DragAndDrop(true)
        .HtmlAttributes( new { style = "border: 5px solid red; min-height: 200px;" })
        //...
    )

More ASP.NET MVC TreeView Resources

See Also

In this article