用于ASP的Telerik UI。NET核心树列表is a data management component, in many aspects similar to the Grid, but providing the option to visualize and manage hierarchical data. It comes with many valuable built-in features, including paging, sorting, filtering, data editing, drag and drop, various export options and more. The component can be used in many scenarios, for example to list all employees of a company and group them under their managers, representing the organizational hierarchy.
请看ASP。网络核心TreeListdemo
ASP。网络核心TreeListcomponent supports binding to various endpoints. You can configure it for lazy loading to make AJAX requests upon loading child nodes, sorting or filtering. You could also use the DataSource component to bind the control to static arrays, dynamic objects, local or remote data, OData or even SignalR.
了解更多关于TreeList的数据绑定
TreeList组件带有20多个内置主题,比如Default(我们自己的样式)、Material(基于材质设计指南)和Bootstrap(类似于Bootstrap样式以更好地集成)。您可以轻松地自定义任何可用的主题,只需几行CSS或创建一个新的主题,以匹配您的颜色和品牌Telerik SASS ThemeBuilder应用程序。
用于ASP的Telerik UI。NET核心树列表comes with built-in editing functionality that can be implemented by setting the model and configuring the transport. Users can edit data in the TreeList in three different ways:
当可编辑时,用户可以拖放树列表项。Move属性被设置为true。它们可以在TreeList的所有层次结构级别上重新排列行顺序,因为当这种更改被注册时,组件将在内部更新parentId字段。
请看ASP。网络核心TreeList拖放demo
有时TreeList组件中的数据可能很大,用户需要一种简单的方法来定位他们正在寻找的内容。这就是为什么我们在表格上方添加了一个搜索框。
搜索面板功能允许在TreeList中轻松定位特定记录。输入您要查找的内容将过滤TreeList中的记录,并显示所需的信息以及层次结构中的相关项。该特性允许配置应该包含在搜索命令中的树列表字段。
参见Telerik UI的ASP。NET核心树列表搜索面板demo
TreeList组件使您能够可视化每个层次数据的聚合结果。内置的聚合函数包括Count、Sum、Average等,可以显示在每个组脚中。
使用TreeList状态管理特性,您可以轻松地保存用户与组件交互时的首选项和设置,并在用户重新登录时恢复它们。保存用户首选项是使用getOptions方法实现的,并使用setOptions方法恢复它们。
只需一行代码就可以启用TreeList内置PDF和Excel导出功能。轻松自定义导出的文件,以包括您需要的确切内容。
在任何应用程序中,可访问性都是一个大问题。用于ASP的Telerik UI。NET核心树列表component complies with Section 508 and WCAG guidelines out of the box, ensuring anyone can navigate the component’s UI.
TreeList支持开箱即用的键盘导航。请参阅演示页面有关如何使用直观的键盘快捷键导航组件的详细信息。