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

syncfusion-react-treegridsyncfusion React treegrid 搜索

Agent Skill

用于辅助前端页面、组件、样式和交互逻辑的开发与维护。它适合让 Agent 生成或审查 React、Next.js、Vue、Tailwind、CSS 等相关代码,整理组件结构,或定位布局和性能问题。使用时需要结合项目现有设计系统、路由和构建方式,避免只生成孤立片段;涉及页面改动时,应配合本地预览和构建检查确认视觉效果。

总安装

1,929

周安装

82

GitHub Stars

1

下载量

676
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/syncfusion/react-ui-components-skills --skill syncfusion-react-treegrid

简介

用于辅助 React 树形网格组件的开发与维护。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中查找和检索相关信息。
  • 通过 GitHub 安装,需结合项目技术文档使用。
  • 建议确认权限范围和文件读写边界。
  • syncfusion-react-treegrid 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Syncfusion React TreeGrid

A comprehensive skill for implementing and customizing Syncfusion's React TreeGrid component. TreeGrid visualizes self-referential hierarchical data in a tabular layout with expand/collapse functionality, enterprise features like virtual scrolling, and comprehensive export options.

Table of Contents

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical or tree-structured data (organizational charts, file systems, bill of materials)
  • Configure columns with proper data binding and formatting
  • Implement data editing (cell, row, dialog, batch, template modes)
  • Add sorting, filtering, and searching capabilities
  • Handle row and cell operations (selection, templates, spanning)
  • Optimize performance with virtual scrolling or infinite scrolling
  • Configure paging and scrolling strategies
  • Export data to PDF, Excel, or CSV formats
  • Implement state persistence and aggregation
  • Customize appearance with themes and styling
  • Support accessibility and internationalization (RTL, localization)

TreeGrid Overview

The TreeGrid is optimized for displaying self-referential hierarchical data with:

  • Auto-expand/collapse functionality for collapsible rows
  • Enterprise features: virtual scrolling, aggregates, state persistence
  • Adaptive UI for mobile and small screens
  • Comprehensive export: PDF, Excel, CSV formats
  • Full accessibility: WCAG compliance, keyboard navigation, ARIA support
  • Internationalization: RTL support, locale customization

Data Structure Rules

Rule 1: childMapping is MANDATORY for Hierarchical Data

Severity: 🔴 CRITICAL - Grid will not expand/collapse without this

Requirement:

// ✅ REQUIRED - Must match data property name exactly
<TreeGridComponent
  dataSource={data}
  childMapping='subtasks'>
  <ColumnsDirective>
    {/* Columns */}
  </ColumnsDirective>
</TreeGridComponent>

// ❌ WRONG - Will not work
<TreeGridComponent
  dataSource={data}>
  {/* No childMapping = No expansion possible */}
</TreeGridComponent>

Data Format:

// ✅ CORRECT - childMapping matches 'subtasks' property
const data = [
  {
    TaskID: 1,
    TaskName: 'Parent',
    subtasks: [  // Must match childMapping value exactly
      { TaskID: 2, TaskName: 'Child' }
    ]
  }
];

Exception: Use idMapping + parentIdMapping for flat parent-child structure:

// Alternative: Flat structure with parent IDs
<TreeGridComponent
  dataSource={flatData}
  idMapping='TaskID'
  parentIdMapping='ParentID'
  hasChildMapping='isParent'>
</TreeGridComponent>

Rule 2: Data Type Matching is MANDATORY

Severity: 🟠 IMPORTANT - Type mismatches cause rendering/sorting issues

Requirement:

// ✅ CORRECT - Type matches column definition
const data = [
  {
    TaskID: 1,              // number type
    TaskName: 'Planning',   // string type
    StartDate: new Date(),  // Date object for date columns
  }
];

// Column definition must match data types
<ColumnsDirective>
  <ColumnDirective field='TaskID' headerText='ID' type='number'></ColumnDirective>
  <ColumnDirective field='TaskName' headerText='Task' type='string'></ColumnDirective>
  <ColumnDirective field='StartDate' headerText='Date' type='date' format='yMd'></ColumnDirective>
</ColumnsDirective>

// ❌ WRONG - Type mismatch
const data = [
  {
    TaskID: '1',            // String instead of number
    StartDate: '02/03/2024' // String instead of Date object
  }
];

Complete Props Reference

📄 Property and Methods: references/programmatic-api.md

📄 Events Reference 📖 references/events-reference.md

  • Complete event reference guide
  • Data events (actionBegin, actionComplete, actionFailure)
  • Editing events (cellEdit, cellSave, beforeEdit)
  • Selection events (rowSelected, rowDeselected, cellSelected)
  • Expand/collapse events
  • Column events (drag, drop, resize, hide, show)
  • Row events and utilities

Documentation Navigation Guide

Data Binding

📖 references/data-binding.md

  • Local vs. remote data sources
  • Self-referential parent-child relationships
  • DataManager integration
  • ExpandStateMapping for initial expand state
  • Complex data binding for nested objects

Column Configuration

📖 references/column.md

  • Column definitions and field mapping
  • Tree column index setup
  • Data types and formatting
  • Column templates and custom rendering
  • Headers and styling
  • Foreign key columns

Row Operations

📖 references/row.md

  • Row templates and custom rendering
  • Row height configuration
  • Row spanning
  • Detail templates for nested content
  • Row drag-and-drop
  • Indent and outdent operations

Cell Operations

📖 references/cell.md

  • Cell editing
  • Cell templates, styling and attributes
  • Cell selection
  • Cell formatting

Editing

📖 references/editing.md

  • Cell editing mode
  • Row editing mode
  • Dialog editing
  • Batch editing
  • Template editing
  • Validation rules and custom validators
  • Command column editing
  • Server-side persistence

Sorting

📖 references/sorting.md

  • Single and multi-column sorting
  • Initial sort order configuration
  • Custom sort comparers
  • Sorting with templates
  • Programmatic sorting

Filtering

📖 references/filtering.md

  • Filter bar mode
  • Filter menu mode
  • Excel-like filtering
  • Custom filters
  • Programmatic filtering
  • Filter templates

Searching

📖 references/searching.md

  • Global search across all columns
  • Search highlight
  • Programmatic search
  • Search with templates

Selection

📖 references/selection.md

  • Row selection (single and multiple)
  • Cell selection
  • Checkbox selection
  • Selection mode configuration
  • Programmatic selection
  • Selection change events

Display & Layout (Performance & Presentation)

📄 Paging 📖 references/paging.md

  • Pager configuration and options
  • Page size settings
  • Initial page settings
  • Pager template customization
  • Programmatic pagination

📄 Scrolling 📖 references/scrolling.md

  • Vertical and horizontal scrolling
  • Scroll height configuration
  • Scroll position control
  • Sticky headers
  • Responsive scrolling

📄 Frozen Rows and Columns 📖 references/frozen-rows-columns.md

  • Freeze header rows
  • Freeze columns
  • Freeze direction
  • Lock columns
  • IsFrozen property usage

📄 Virtual Scrolling & Infinite Scrolling 📖 references/virtual-scrolling-infinite-scrolling.md

  • Virtual scrolling for large datasets
  • Infinite scrolling configuration
  • Row height for virtual scroll
  • ViewportIndex and ViewportStartIndex
  • Performance optimization with virtual scroll

Aggregates

📖 references/aggregates.md

  • Standard aggregates (Sum, Average, Min, Max, Count)
  • Custom aggregates
  • Footer aggregates
  • Group aggregates
  • Hierarchical aggregates for child data

State Persistence

📖 references/state-persistence.md

  • Global state persistence
  • Local state persistence
  • ExpandState tracking
  • Persist sort, filter, and paging
  • State restoration on reload

Toolbar

📖 references/toolbar.md

  • Built-in toolbar items
  • Custom toolbar items
  • Toolbar item types (Button, Separator, Dropdown)
  • Toolbar item click handling
  • Toolbar template customization

Context Menu

📖 references/context-menu.md

  • Built-in context menu items
  • Custom context menu items
  • Menu item click handling
  • Copy/Edit/Delete operations
  • Header context menu

Adaptive View

📖 references/adaptive-view.md

  • Adaptive UI for small screens
  • Full-screen dialogs
  • Horizontal row rendering
  • Responsive column adjustments
  • Mobile optimization

Loading Animation

📖 references/loading-animation.md

  • Loading indicator display
  • Custom loading spinner
  • Loading state management
  • Spinner animation control

Export & Print

📄 PDF Export 📖 references/pdf-export.md

  • PDF export configuration
  • Export options (columns, format)
  • Headers and footers
  • Page orientation and size
  • Server-side export
  • Exporting hierarchical data

📄 Excel Export 📖 references/excel-export.md

  • Excel export configuration
  • Export options (columns, formatting)
  • Cell styling in export
  • Headers and footers
  • Server-side export
  • Exporting hierarchical levels

📄 Print 📖 references/print.md

  • Print configuration
  • Print with custom layout
  • Print specific ranges
  • Print hierarchy levels
  • Print preview

Clipboard

📖 references/clipboard.md

  • Copy cell content to clipboard
  • Copy entire rows
  • Paste operations
  • Copy hierarchy with levels
  • Clipboard event handling

Column Features (Advanced)

📄 Column Reorder 📖 references/column-reorder.md

  • Enable column drag-and-drop reordering
  • Prevent specific columns from reordering
  • Reorder events and callbacks
  • Programmatic column reordering

📄 Column Resize 📖 references/column-resize.md

  • Enable column drag resize
  • Auto-fit columns to content
  • Column width constraints (min/max)
  • Resize events
  • Programmatic width changes
  • Save/restore column widths

📄 Column Menu 📖 references/column-menu.md

  • Built-in column menu items
  • Sort, filter, and column chooser from menu
  • Custom menu items
  • Menu events and handlers
  • Conditional menu items

📄 Column Chooser 📖 references/column-chooser.md

  • Toggle column visibility
  • Column chooser dialog configuration
  • Show/hide columns programmatically
  • Column visibility events
  • Save/restore column visibility

📄 Command Column 📖 references/command-column.md

  • Built-in command buttons (Edit, Delete, Save, Cancel)
  • Custom command buttons
  • Command click handlers
  • Icon customization
  • Row action patterns

Server Integration

📖 references/server-integration.md

  • Remote data binding with DataManager
  • Server-side CRUD operations
  • Server-side filtering and sorting
  • Server-side paging
  • Custom request/response handling
  • Error handling strategies
  • Batch operations

Validation Patterns

📖 references/validation-patterns.md

  • Column validation rules
  • Custom validation logic
  • Cross-field validation
  • Async validation (API calls)
  • Server-side validation
  • Dialog form validation
  • Conditional validation
  • Error message display

Performance Optimization

📖 references/performance-optimization.md

  • Virtual scrolling for large datasets (100k+ rows)
  • Infinite scrolling with caching
  • Bundle size optimization
  • Disabling unnecessary features
  • Server-side operations optimization
  • Memoization and rendering optimization
  • Template optimization
  • Event handler optimization
  • Benchmarking and performance monitoring
  • Performance checklist

Customization

📖 references/styling-appearance.md

  • CSS class customization
  • Theme selection (Material, Bootstrap, Fluent, Tailwind)
  • CSS variable overrides
  • Component-specific styling
  • Dark mode support
  • Row styling
  • Cell styling

Globalization

📖 references/globalization.md

  • Internationalization (i18n)
  • Localization (l10n) for UI text
  • Right-to-left (RTL) support
  • Date formatting per locale
  • Number formatting per locale
  • Currency localization

Accessibility

📖 references/accessibility.md

  • WCAG 2.1 Level AA compliance
  • Keyboard navigation (all shortcuts)
  • ARIA attributes and screen reader support
  • Expand/collapse keyboard shortcuts
  • Editing keyboard navigation
  • Selection shortcuts

Quick Start Example

import React from 'react';
import { TreeGridComponent, ColumnsDirective, ColumnDirective, Inject, Page } from '@syncfusion/ej2-react-treegrid';
import { DataManager, UrlAdaptor } from '@syncfusion/ej2-data';

interface ITreeData {
  TaskID?: number;
  TaskName?: string;
  parentID: number | null;
  Children?: ITreeData[];
}

export default function App() {
  const data: ITreeData[] = [
    {
      TaskID: 1,
      TaskName: 'Planning',
      parentID: null,
      Children: [{ TaskID: 2, TaskName: 'Plan timeline', parentID: 1 }]
    }
  ];

  return (
    <TreeGridComponent
      dataSource={data}
      childMapping="Children"
      treeColumnIndex={1}
      height="auto"
      allowPaging={true}
    >
      <ColumnsDirective>
        <ColumnDirective field="TaskID" headerText="Task ID" width={80} />
        <ColumnDirective field="TaskName" headerText="Task Name" width={160} />
      </ColumnsDirective>
      <Inject services={[Page]} />
    </TreeGridComponent>
  );
}

Core Configuration

PropertyTypeDefaultDescription
dataSourceArray \DataManager[]Data source for TreeGrid
childMappingstringnullProperty name for child records (e.g., "Children")
idMappingstringnullProperty name for unique ID (flat data)
parentIdMappingstringnullProperty name for parent ID (flat data)
hasChildMappingstringnullProperty for lazy load indicator
treeColumnIndexnumber0Column index for tree expand icons
expandStateMappingstringnullProperty for initial expand state

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.68%
按下载量换算234

Claude

28.81%
按下载量换算195

Cursor

20.19%
按下载量换算136

Gemini CLI

9.28%
按下载量换算63

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills