ASP。NET MVCTreeListis a data management component with similar functionalities to the Grid component. In addition to the built-in paging, sorting, filtering, data editing and various export options, the TreeList provides the option to display self-referencing data in a user-friendly manner by combining the features of a Grid and a TreeView. The component is suitable for a wide range of use case scenarios, for example displaying and managing organizational structures and grouping employees under their managers.
参见Telerik UI的ASP。NET MVC树列表正在运行
使用DataSource组件将TreeList控件绑定到静态数组、动态对象、本地或远程数据甚至SignalR集线器。的内置的AJAX绑定在ASP中特别有用。净MVC场景。
如果您不喜欢使用Column菜单,您可以在ASP. xml的标题中启用筛选器行。NET MVC树列表,设置它的可过滤属性为row。根据列数据类型,筛选器行显示字符串、数字或日期输入的适当筛选器类型,以及可用筛选器操作数的列表,如“开始于”、“包含”、“等于”等。
当用户打算显示树列表的多级标题作为特定类别或组的一部分时,多列标题将发挥作用。这为您提供了定义跨多个子列的列的选项。
TreeList支持两种类型的行选择:
用户可以通过将它们拖放到层次树的所需级别(同一级别、父级或子级)轻松地对TreeList行进行重新排序。执行此操作时,树列表将自动更新该项的parentId字段。
玩ASP。NET MVC TreeListDrag & Drop feature in this demo
TreeList行模板为样式化行外观提供了灵活的定制选项。你可以渲染任何东西,从纯文本到图像、图标、链接按钮和格式化的多行描述。
该特性旨在帮助处理树列表中的大型数据集。它目前专门用于客户端,这意味着所有的数据都加载在客户端上,但这个新特性应该在性能方面有很大帮助。
Telerik TreeList扩展ASP。NET MVCenables you to display aggregates in the column footer cells, such as sum, count, average, etc.
Telerik UI for ASP。NET MVC TreeList聚合demo
将TreeList控件的全部内容导出到PDF和Excel文件。您可以使用户自定义导出的文件,以包含他们需要的确切内容。
在我们的文档中了解如何将多个树列表导出到Excel
ASP。NET MVCTreeListsupports keyboard navigation, meaning users can use their keyboards to navigate the component and perform actions both in the component’s header and the data table itself.