Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

syncfusion-aspnetcore-tree-view同步融合 aspnetcore 树视图

Agent Skill

syncfusion-aspnetcore-tree-view 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

公开资料未说明

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:syncfusion-aspnetcore-tree-view(同步融合 aspnetcore 树视图)
来源仓库:https://github.com/syncfusion/aspnetcore-ui-components-skills
仓库路径:skills/syncfusion-aspnetcore-tree-view
安装命令:
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-tree-view
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-tree-view

简介

提供 Syncfusion TreeView 组件的完整实现指南与交互功能说明。

  • 适用于 WinForms 分层数据展示与复杂树形界面开发场景。
  • 支持多重选择、拖放编辑与主题定制等多种高级特性。
  • 需遵循官方许可协议并正确注册许可证密钥方可商用。
  • 建议从入门文档开始逐步构建首个可运行示例项目。syncfusion-aspnetcore-tree-view 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion Core TreeView

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical data structures - Render organizational charts, file systems, category trees, or any nested data in a tree format
  • Enable user selection - Implement single or multi-select functionality with keyboard and mouse interactions
  • Build interactive trees - Add drag-and-drop, node editing, checkboxes, and dynamic node manipulation
  • Customize appearance - Apply templates, icons, animations, and styling to match your application design
  • Handle tree events - Respond to node interactions with expand/collapse, selection, and editing events
  • Implement load-on-demand - Optimize performance for large datasets by loading child nodes only when parent nodes expand
  • Create accessibility-compliant interfaces - Ensure keyboard navigation and screen reader support for users with accessibility needs

Component Overview

The Syncfusion TreeView is an enterprise-grade component that displays hierarchical data in a tree structure with powerful interactive features. It supports local and remote data binding, multiple selection modes, drag-and-drop operations, node editing, checkboxes, and comprehensive event handling.

Key Capabilities

  • Data Binding: Support for hierarchical data, self-referential data, local arrays, and remote data services (OData, Web API, DataManager)
  • Node Interactions: Single selection, multi-selection (Ctrl/Shift keys), keyboard navigation (arrow keys, F2, Delete)
  • Selection Types: Full row selection, node text selection, checkbox selection, independent node states
  • Dynamic Operations: Add, remove, update, refresh, and move nodes programmatically
  • Editing: In-place editing with double-click or F2 key, with validation support
  • Drag-and-Drop: Full drag-and-drop support with visual indicators and multi-node dragging
  • Checkboxes: Parent-child dependency, auto-check propagation, independent states
  • Customization: Node templates, custom icons, CSS styling, animation effects
  • Performance: Load-on-demand rendering for large datasets, lazy loading of child nodes
  • Accessibility: Full keyboard support, ARIA attributes, screen reader compatibility

Documentation and Navigation Guide

Use this guide to navigate to the specific TreeView feature you need to implement:

Getting Started

📄 Read: references/getting-started.md

When you need to:

  • Set up TreeView in your application for the first time
  • Understand basic component initialization and configuration
  • Learn prerequisite setup and installation steps
  • See your first working TreeView example

Data Binding and Field Configuration

📄 Read: references/data-binding-and-fields.md

When you need to:

  • Bind data from local arrays or remote services
  • Configure hierarchical or self-referential data structures
  • Map data source fields to TreeView properties
  • Implement remote data binding with DataManager
  • Handle load-on-demand scenarios

Node Selection (Single and Multi-Select)

📄 Read: references/node-selection.md

When you need to:

  • Enable single node selection
  • Implement multi-selection with Ctrl and Shift keys
  • Track selected nodes programmatically
  • Respond to selection events
  • Prevent selection for specific nodes

Node Expansion and Collapsing

📄 Read: references/node-expansion.md

When you need to:

  • Control node expand/collapse behavior
  • Configure expand-on-click or double-click
  • Handle expand/collapse events
  • Manage expanded nodes state
  • Implement load-on-demand expansion

Checkboxes and Checked Nodes

📄 Read: references/checkboxes-and-checked-nodes.md

When you need to:

  • Enable checkboxes in TreeView nodes
  • Track checked nodes and their states
  • Implement auto-check for parent-child relationships
  • Configure independent node check states
  • Handle checkbox change events

Drag and Drop Operations

📄 Read: references/drag-and-drop.md

When you need to:

  • Enable drag-and-drop functionality
  • Handle single and multi-node dragging
  • Control drop zones and restrictions
  • Respond to drag-drop lifecycle events
  • Prevent dragging for specific nodes

Node Editing and Validation

📄 Read: references/node-editing.md

When you need to:

  • Enable in-place node text editing
  • Implement edit mode with double-click or F2
  • Validate node text during editing
  • Prevent editing for specific nodes
  • Save or cancel edit operations

Templates and Styling

📄 Read: references/templates-and-styling.md

When you need to:

  • Customize node appearance with templates
  • Apply custom icons and images
  • Configure animations and transitions
  • Implement full-row selection styling
  • Use CSS classes for TreeView customization

Node Manipulation and Dynamic Operations

📄 Read: references/node-manipulation.md

When you need to:

  • Add new nodes programmatically
  • Remove existing nodes
  • Update node text or properties
  • Refresh node content
  • Move nodes to different positions
  • Get tree data programmatically

Events and Keyboard Navigation

📄 Read: references/events-and-keyboard-navigation.md

When you need to:

  • Handle all TreeView events (expand, select, check, drag, edit)
  • Implement keyboard navigation support
  • Respond to user interactions
  • Prevent default behavior for specific actions
  • Track component lifecycle events

Complete API Reference

📄 Read: references/api-reference.md

When you need to:

  • Look up specific property definitions and default values
  • Find method signatures with parameter descriptions
  • Understand event handler parameters and structure
  • Reference FieldsSettings configuration options
  • Check AnimationSettings for expand/collapse effects
  • Get complete API documentation with code examples for all properties, methods, and events

Quick Start Example

Here's a minimal example to get TreeView running immediately:

<ejs-treeview id="treeAdvanced" showCheckBox="true"
    allowMultiSelection="true" allowDragAndDrop="true" allowEditing="true">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild"></e-treeview-fields>
</ejs-treeview>

Common Patterns

Pattern 1: Single Selection with Event Handling

<ejs-treeview id="treeAdvanced" allowMultiSelection="false">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild"></e-treeview-fields>
</ejs-treeview>

Pattern 2: Multi-Select with Checkboxes

<ejs-treeview id="treeAdvanced" showCheckBox="true"
    allowMultiSelection="true">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild"></e-treeview-fields>
</ejs-treeview>

Pattern 3: Lazy Loading with Load-on-Demand

<ejs-treeview id="treeAdvanced" loadOnDemand="true">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" parentId="pid" text="name" hasChildren="hasChild"></e-treeview-fields>
</ejs-treeview>

Pattern 4: Editable Tree with Validation

<ejs-treeview id="treeRestricted" allowEditing="true" nodeEditing="nodeEditing" nodeEdited="nodeEdited">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" text="name"></e-treeview-fields>
</ejs-treeview>

<script>
    function nodeEditing(args) {
        if (args.newText.length < 3) {
          args.cancel = true;
        }
    }
    function nodeEdited(args) {
      console.log('Node text updated to:', args.newText);
    }
</script>

Pattern 5: Drag-Drop with Restrictions

<ejs-treeview id="treeNodeDrag" allowDragAndDrop="true"
    nodeDragStart="onDragStart"
    nodeDropped="nodeDropped">
    <e-treeview-fields dataSource="ViewBag.dataSource" id="id" text="name"></e-treeview-fields>
</ejs-treeview>

<script>
    function onDragStart(args) {
      if (!args.nodeData.pid) {
          args.cancel = true;
      }
    }

    function nodeDropped(args) {
        console.log('Node dropped successfully');
    }
</script>

Key Props Reference

PropertyTypeDefaultPurpose
fieldsFieldsSettings-Configure data source and field mappings
dataSourcearray \DataManager[]Data source for TreeView nodes
showCheckBoxbooleanfalseShow checkboxes for node selection
allowMultiSelectionbooleanfalseEnable multi-node selection
allowDragAndDropbooleanfalseEnable drag-and-drop operations
allowEditingbooleanfalseEnable in-place node editing
allowTextWrapbooleanfalseWrap node text for overflow
loadOnDemandbooleantrueLoad child nodes on parent expand
fullRowSelectbooleanfalseSelect entire row instead of text
fullRowNavigablebooleanfalseNavigate entire row with keyboard
expandOnstring'Click'Action to expand/collapse (Click, DblClick, None)
sortOrderstring'None'Sort nodes (None, Ascending, Descending)
selectedNodesstring[][]Selected node IDs
checkedNodesstring[][]Checked node IDs
expandedNodesstring[][]Expanded node IDs
cssClassstring''Custom CSS classes
disabledbooleanfalseDisable TreeView interaction
enablePersistencebooleanfalsePersist state between page reloads
enableRtlbooleanfalseRight-to-left rendering

Common Use Cases

Use Case 1: File Manager Tree

Display a hierarchical file system with folders and files, enabling users to browse, select, and manage files.

Key Features: Hierarchical data, icons for file/folder types, multi-select, drag-drop for moving files, context menu for operations.

Related References: data-binding-and-fields.md, templates-and-styling.md, drag-and-drop.md

Use Case 2: Organizational Chart

Show company hierarchy with employees organized by departments and teams.

Key Features: Hierarchical data, node templates for employee details, search/filter, single selection, expand/collapse.

Related References: data-binding-and-fields.md, templates-and-styling.md, node-selection.md

Use Case 3: Permission/Role Management

Display hierarchical permissions or roles where users select multiple permissions for roles.

Key Features: Checkboxes, multi-select, parent-child dependency, auto-check propagation, checkbox events.

Related References: checkboxes-and-checked-nodes.md, node-selection.md

Use Case 4: Product Category Browser

Browse product categories with filtering and search capability.

Key Features: Large dataset with load-on-demand, single selection, keyboard navigation, expand-on-click.

Related References: data-binding-and-fields.md, node-expansion.md, events-and-keyboard-navigation.md

Use Case 5: Menu Structure Editor

Allow administrators to create and edit hierarchical menu structures.

Key Features: Node editing, add/remove/move nodes, templates, drag-drop, in-place editing with validation.

Related References: node-manipulation.md, node-editing.md, templates-and-styling.md

Summary

The Syncfusion TreeView component provides a complete solution for displaying and interacting with hierarchical data. It combines powerful data binding capabilities with rich interactive features like multi-selection, drag-and-drop, editing, and checkboxes. With extensive customization options through templates and styling, you can create sophisticated tree-based interfaces that meet any business requirement.

Start with the Getting Started reference to set up your first TreeView, then explore specific features using the documentation guide above based on your requirements.


Next Steps: Choose your first task from the Documentation and Navigation Guide section and follow the reference guide to implement your TreeView feature.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

31.97%
按下载量换算24

Claude

30.73%
按下载量换算23

Cursor

20.09%
按下载量换算15

Gemini CLI

9.31%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills