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

syncfusion-blazor-dropdown-tree同步融合 Blazor 下拉树

Agent Skill

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

总安装

908

周安装

39

GitHub Stars

公开资料未说明

下载量

318
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

树形下拉选择器,用于多层级数据的选择和展示。syncfusion-blazor-dropdown-tree 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合组织架构、产品分类或权限分配等嵌套结构场景。
  • 支持异步加载子节点,避免一次性渲染全部数据造成卡顿。
  • 选中值回传时应做类型转换校验,防止 JSON 反序列化失败。
  • 键盘导航需完善上下键和回车操作,提升无障碍访问体验。

SKILL.md

Implementing Syncfusion Blazor Dropdown Tree Component

The Blazor Dropdown Tree component is a hierarchical data selection control that displays tree-structured data in a dropdown popup. It supports local and remote data binding, single and multi-selection modes, checkboxes, filtering, custom templates, and comprehensive event handling.

When to Use This Skill

  • Display hierarchical data in a compact dropdown format
  • Single selection: Allow users to select one item from a tree structure (default mode)
  • Multi-selection: Enable selection of multiple tree nodes using CTRL+SHIFT shortcuts
  • Checkbox selection: Provide checkbox-based multi-selection with dependent state management
  • Filter tree data: Implement search functionality to filter nodes by text
  • Remote data sources: Bind to OData, OData V4, Web API, or custom service endpoints
  • Custom templates: Personalize item display, selected value display, and popup header
  • Handle events: Respond to lifecycle events, selection changes, popup actions
  • Form validation: Integrate with form validation frameworks
  • Styling and appearance: Apply CSS classes, disabled states, and theme customization

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Installation and NuGet package setup
  • Web and Server app configuration
  • Basic component initialization
  • Data binding fundamentals
  • First working example

Selection and Modes

📄 Read: references/selection-and-modes.md

  • Single selection (default behavior)
  • Multi-selection with AllowMultiSelection property
  • Keyboard shortcuts (CTRL, SHIFT)
  • Preselected values and dynamic selection
  • Getting selected values with @bind-Value
  • Clearing selection

Checkbox Features

📄 Read: references/checkbox-features.md

  • ShowCheckBox property for multi-item selection
  • AutoUpdateCheckState for dependent parent-child relationships
  • ShowSelectAll for selecting/deselecting all nodes
  • SelectAllAsync and programmatic selection methods

Data Binding and Remote Data

📄 Read: references/data-binding-operations.md

  • Local data binding (hierarchical and self-referential)
  • ExpandoObject and DynamicObject binding
  • Remote data with ODataAdaptor, ODataV4Adaptor, WebApiAdaptor
  • Entity Framework integration
  • Observable collections with dynamic data updates
  • Load on Demand for large datasets
  • Adding/removing items dynamically
  • GetTreeViewData method for retrieving node information

Events and Callbacks

📄 Read: references/events-callbacks.md

  • Lifecycle events (Created, Destroyed)
  • Popup events (OnPopupOpen, OnPopupClose)
  • Selection events (ValueChanging, ValueChanged)
  • Filtering event with custom filters
  • OnActionFailure for error handling
  • Event handlers and async support

Filtering and Search

📄 Read: references/filtering-search.md

  • AllowFiltering property to enable search
  • FilterType options (StartsWith, EndsWith, Contains)
  • IgnoreCase for case-insensitive filtering
  • FilterBarPlaceholder customization
  • Minimum filter length implementation

Sorting

📄 Read: references/sorting.md

  • SortOrder property (None, Ascending, Descending)
  • Dynamic sorting updates

Templates and Customization

📄 Read: references/templates-customization.md

  • ItemTemplate for custom node rendering
  • ValueTemplate for selected value display
  • HeaderTemplate for popup header customization
  • Advanced styling and layout patterns

Styling and Appearance

📄 Read: references/styling-appearance.md

  • Disabled state configuration
  • CssClass property with predefined classes (e-success, e-warning, e-error, e-outline)
  • PopupWidth and PopupHeight customization
  • ZIndex for layer management
  • Theme support and responsive design

Form Validation and Configuration

📄 Read: references/validation-localization.md

  • Form validation integration
  • Value binding in forms
  • Localization support
  • PopupSettings configuration
  • Accessibility and placeholder settings

Quick Start Example

@using Syncfusion.Blazor.Navigations

<SfDropDownTree TItem="EmployeeData" TValue="string"
    Placeholder="Select an employee"
    Width="500px">
    <DropDownTreeField TItem="EmployeeData"
        DataSource="Data"
        ID="Id"
        Text="Name"
        HasChildren="HasChild"
        ParentID="PId">
    </DropDownTreeField>
</SfDropDownTree>

@code {
    List<EmployeeData> Data = new List<EmployeeData>
    {
        new EmployeeData() { Id = "1", Name = "Steven Buchanan", Job = "General Manager", HasChild = true, Expanded = true },
        new EmployeeData() { Id = "2", PId = "1", Name = "Laura Callahan", Job = "Product Manager", HasChild = true },
        new EmployeeData() { Id = "3", PId = "2", Name = "Andrew Fuller", Job = "Team Lead", HasChild = true },
        new EmployeeData() { Id = "4", PId = "3", Name = "Anne Dodsworth", Job = "Developer" },
    };

    public class EmployeeData
    {
        public string? Id { get; set; }
        public string? Name { get; set; }
        public string? Job { get; set; }
        public bool HasChild { get; set; }
        public bool Expanded { get; set; }
        public string? PId { get; set; }
    }
}

Common Patterns

Pattern 1: Multi-Selection with Checkboxes

Enable checkbox-based selection with automatic parent-child state management:

<SfDropDownTree TItem="EmployeeData" TValue="string"
    ShowCheckBox="true"
    AutoUpdateCheckState="true"
    ShowSelectAll="true">
    <DropDownTreeField TItem="EmployeeData" DataSource="Data"
        ID="Id" Text="Name" HasChildren="HasChild" ParentID="PId">
    </DropDownTreeField>
</SfDropDownTree>

Pattern 2: Preselected Values

Set default selected nodes using @bind-Value with AllowMultiSelection:

<SfDropDownTree TItem="EmployeeData" TValue="string"
    AllowMultiSelection="true"
    @bind-Value="@SelectedIds">
    <DropDownTreeField TItem="EmployeeData" DataSource="Data"
        ID="Id" Text="Name" HasChildren="HasChild" ParentID="PId">
    </DropDownTreeField>
</SfDropDownTree>

@code {
    List<string> SelectedIds = new List<string>() { "1", "5" };
}

Pattern 3: Search with Filtering

Enable search functionality with custom filter types:

<SfDropDownTree TItem="EmployeeData" TValue="string"
    AllowFiltering="true"
    FilterType="FilterType.Contains"
    FilterBarPlaceholder="Search employees...">
    <DropDownTreeField TItem="EmployeeData" DataSource="Data"
        ID="Id" Text="Name" HasChildren="HasChild" ParentID="PId">
    </DropDownTreeField>
</SfDropDownTree>

Pattern 4: Remote Data Binding (OData)

Bind to remote OData services with DataManager:

<SfDropDownTree TValue="int?" TItem="TreeData" Placeholder="Select an employee" Width="500px">
    <DropDownTreeField TItem="TreeData" Query="@Query"
        ID="EmployeeID" Text="FirstName" ParentID="ReportsTo" HasChildren="HasChildren">
        <SfDataManager Url="url"
            Adaptor="Syncfusion.Blazor.Adaptors.ODataV4Adaptor"
            CrossDomain="true">
        </SfDataManager>
    </DropDownTreeField>
</SfDropDownTree>

@code {
    public Query Query = new Query();
}

Key Properties and APIs

PropertyTypeDescription
TItemGenericModel class for data items
TValueGenericType of selected value(s)
ValueListTwo-way bindable selected values
DataSourceIEnumerableLocal data source (via DropDownTreeField)
AllowMultiSelectionboolEnable multi-node selection
ShowCheckBoxboolDisplay checkboxes for selection
AutoUpdateCheckStateboolAuto-sync parent-child checkbox states
ShowSelectAllboolDisplay select/deselect all checkbox
AllowFilteringboolEnable search filtering
FilterTypeFilterTypeFilter matching strategy (StartsWith, EndsWith, Contains)
IgnoreCaseboolCase-insensitive filtering
LoadOnDemandboolLazy-load child nodes on expand
PlaceholderstringInput placeholder text
WidthstringComponent width
PopupWidthstringDropdown popup width
PopupHeightstringDropdown popup height
ZIndexintCSS z-index of popup
CssClassstringCustom CSS classes
DisabledboolDisable component interaction

Key Events

  • Created: Component initialization complete
  • Destroyed: Component destruction
  • OnPopupOpen: Popup opened after animation
  • OnPopupClose: Popup closed after animation
  • ValueChanging: Before value change (DdtChangeEventArgs)
  • ValueChanged: After value change (List)
  • Filtering: Search text entered (DdtFilteringEventArgs)
  • OnActionFailure: Error during data operations

Key Methods

  • SelectAllAsync(): Programmatically select all nodes
  • SelectAllAsync(false): Programmatically deselect all nodes
  • ClearAsync(): Clear all selected values
  • GetTreeViewData(id): Get node information by ID

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.12%
按下载量换算112

Claude

30.19%
按下载量换算96

Cursor

19.31%
按下载量换算61

Gemini CLI

10.04%
按下载量换算32

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills