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

syncfusion-aspnetcore-list-box同步融合 aspnetcore 列表框

Agent Skill

syncfusion-aspnetcore-list-box 用于查找、检索和筛选相关信息,适合在 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-list-box(同步融合 aspnetcore 列表框)
来源仓库:https://github.com/syncfusion/aspnetcore-ui-components-skills
仓库路径:skills/syncfusion-aspnetcore-list-box
安装命令:
npx skills add https://github.com/syncfusion/aspnetcore-ui-components-skills --skill syncfusion-aspnetcore-list-box
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

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

简介

同步融合 ASP.NET Core 列表框组件,提供多选列表交互体验。

  • 适用于标签选择、权限分配、分类筛选等多选操作场景。
  • 通过 GitHub 安装并配置数据绑定,支持键盘导航和搜索高亮。
  • 使用前请验证选项数据来源合法性,避免包含非法内容。
  • 长列表时应启用虚拟化渲染优化滚动性能。syncfusion-aspnetcore-list-box 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Implementing Syncfusion ASP.NET Core ListBox

When to Use This Skill

Use this skill when you need to:

  • Implement ListBox control in ASP.NET Core applications using TagHelper syntax
  • Configure selection modes (single or multiple item selection)
  • Bind data sources to the ListBox component
  • Apply themes and styling to match your design
  • Handle advanced features like drag-and-drop, dual lists, and filtering
  • Solve common tasks like adding items, enabling scrollers, or form integration
  • Debug issues with selection, data binding, or rendering

Component Overview

The Syncfusion ASP.NET Core ListBox component is a versatile selection control that supports:

  • Single and multiple item selection with keyboard and mouse navigation
  • Data binding from arrays, objects, and dynamic sources
  • Advanced features: drag-drop, templates, dual lists, sorting, grouping
  • Comprehensive theming with built-in and custom themes
  • Full accessibility support (WCAG compliance, keyboard navigation)
  • Rich customization via CSS classes, properties, and events

Perfect for: dropdowns, filters, selection interfaces, permission lists, bulk operations

Documentation and Navigation Guide

Getting Started with ListBox

📄 Read: references/getting-started.md

  • NuGet package installation steps
  • ASP.NET Core project setup (Razor pages, MVC)
  • TagHelper registration in _ViewImports.cshtml
  • CDN stylesheet and script configuration
  • Register Syncfusion Script Manager
  • Create your first ListBox control
  • Initial data binding examples

Selection Modes and User Interaction

📄 Read: references/selection-modes.md

  • Single selection mode (radio button style)
  • Multiple selection mode (checkbox style)
  • Selection events (change, select, doubleClick)
  • Keyboard navigation (arrows, space, Ctrl+A)
  • Programmatic selection management
  • Select-all functionality with checkboxes
  • Advanced selection patterns

Data Binding and Data Sources

📄 Read: references/data-binding.md

  • Binding string arrays to ListBox
  • Binding complex object arrays
  • Field mapping (Text and Value properties)
  • Dynamic data loading via AJAX
  • Real-time data updates
  • Master-detail and dependent lists
  • Filtering and refreshing data

Styling, Theming, and Appearance

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

  • Built-in themes (Material, Bootstrap, Fluent, Tailwind)
  • Theme Studio integration for custom themes
  • CSS class customization for ListBox elements
  • Horizontal ListBox layout implementation
  • Custom styling with colors, fonts, and spacing
  • Responsive design patterns for mobile/tablet
  • Status-based item coloring and templates

Sorting and Grouping ListBox Data

📄 Read: references/sorting-and-grouping.md

  • Sort items in ascending/descending order
  • Group items by category or type
  • Combine sorting and grouping for organized lists
  • Handle complex data with group headers
  • Practical examples with multiple categories
  • Performance optimization for large grouped lists

Advanced Features and Configurations

📄 Read: references/features.md

  • Drag and drop within list and between lists
  • Icons and custom item templates
  • Dual list box (transfer between lists)
  • Virtual scrolling for large datasets
  • Scroller configuration for fixed heights
  • Complex selection scenarios and patterns
  • Event handling best practices

Common Tasks and Troubleshooting

📄 Read: references/howto-common-tasks.md

  • Adding and removing items dynamically
  • Enabling/disabling specific items
  • Filtering ListBox data with search
  • Form submission with selected values
  • Scroll positioning and monitoring
  • Validating user input before operations
  • Performance optimization techniques
  • Debugging common issues

Quick Start Example

1. Install Syncfusion Package

// Package Manager Console
Install-Package Syncfusion.EJ2.AspNet.Core -Version 25.1.35

2. Register TagHelper

<!-- ~/Pages/_ViewImports.cshtml -->
@addTagHelper *, Syncfusion.EJ2

3. Add Theme and Scripts

<!-- ~/Pages/Shared/_Layout.cshtml -->
<head>
    <link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/25.1.35/fluent.css" />
</head>
<body>
    <!-- Content -->
    <script src="https://cdn.syncfusion.com/ej2/25.1.35/dist/ej2.min.js"></script>
    <ejs-scripts></ejs-scripts>
</body>

4. Create Basic ListBox

// ~/Pages/Index.cshtml.cs
public class IndexModel : PageModel
{
    public List<string> Fruits { get; set; }

    public void OnGet()
    {
        Fruits = new List<string> { "Apple", "Banana", "Cherry", "Date" };
    }
}
<!-- ~/Pages/Index.cshtml -->
@page
@model IndexModel

<ejs-listbox id="fruitBox" dataSource="@Model.Fruits"></ejs-listbox>

Common Patterns

Pattern 1: Single Selection (Like Radio Buttons)

<ejs-listbox id="categoryBox"
             dataSource="@Model.Categories"
             selectionSettings="@(new Syncfusion.EJ2.DropDowns.ListBoxSelectionSettings
             {
                 Mode = Syncfusion.EJ2.DropDowns.SelectionMode.Single
             })"
             change="onCategoryChange">
</ejs-listbox>

<script>
    function onCategoryChange(args) {
        console.log('Selected: ' + args.text);
    }
</script>

Use when: User picks one option (category, department, status)

Pattern 2: Multiple Selection (Like Checkboxes)

<ejs-listbox id="tagsBox"
             dataSource="@Model.Tags"
             selectionSettings="@(new Syncfusion.EJ2.DropDowns.ListBoxSelectionSettings
             {
                 Mode = Syncfusion.EJ2.DropDowns.SelectionMode.Multiple,
                 CheckboxPosition = Syncfusion.EJ2.DropDowns.CheckBoxPosition.Before
             })">
</ejs-listbox>

Use when: User selects multiple options (permissions, features, filters)

Pattern 3: With Search Filter

<input type="text" id="searchBox" placeholder="Search..." />
<ejs-listbox id="searchableList" dataSource="@Model.Items"></ejs-listbox>

<script>
    const allItems = @Html.Raw(System.Text.Json.JsonSerializer.Serialize(Model.Items));

    document.getElementById('searchBox').addEventListener('keyup', function(e) {
        var listbox = document.getElementById('searchableList').ej2_instances[0];
        var term = e.target.value.toLowerCase();
        listbox.dataSource = allItems.filter(item =>
            item.toLowerCase().includes(term)
        );
    });
</script>

Use when: Long lists need filtering (employees, products, permissions)

Pattern 4: Dual List (Transfer Between Lists)

<div style="display: flex; gap: 20px;">
    <div>
        <label>Available</label>
        <ejs-listbox id="availableBox" dataSource="@Model.Available"></ejs-listbox>
    </div>
    <div>
        <button onclick="moveRight()">→</button>
        <button onclick="moveLeft()">←</button>
    </div>
    <div>
        <label>Selected</label>
        <ejs-listbox id="selectedBox" dataSource="@Model.Selected"></ejs-listbox>
    </div>
</div>

Use when: Transferring items between lists (permissions, features, users)

Key Properties and Methods

Essential Properties

PropertyTypePurpose
dataSourceIEnumerableData to display in the list
valuestring/arrayCurrently selected value(s)
selectionSettingsListBoxSelectionSettingsConfigure selection behavior
fieldsListBoxFieldSettingsMap object properties to text/value/groupBy
sortOrderSortOrderSort items: None, Ascending, Descending
cssClassstringCustom CSS class for styling
allowDragAndDropboolEnable drag-drop reordering
heightstringFixed height with scroll

Common Methods

var listbox = document.getElementById('listBox').ej2_instances[0];

// Get/set value
listbox.value;                    // Get selected value(s)
listbox.value = 'newValue';       // Set selected

// Selection operations
listbox.selectAll();              // Select all items
listbox.clearSelection();         // Deselect all
listbox.selectItemsByRange(0, 3); // Select range

// Data operations
listbox.refresh();                // Refresh UI after data change
listbox.destroy();                // Clean up component

Common Use Cases

Use CaseSelectionFeaturesExample
Category PickerSingleNoneStore category preference
Bulk PermissionsMultipleCheckboxesAssign permissions to users
Product FilterMultipleSearchE-commerce filtering
Feature ToggleMultipleDrag-sortSet feature priority
Employee SelectorMultipleSearch, TemplatesTeam assignment
Report FieldsMultipleDual listsInclude/exclude fields

Key Features at a Glance

  • Single/Multiple Selection - Choose one or many items
  • Data Binding - Connect to arrays, objects, databases
  • Sorting - Alphabetical ordering (ascending/descending)
  • Grouping - Organize items by category or type
  • Drag & Drop - Reorder items or transfer between lists
  • Templates - Customize item display with HTML
  • Theming - 7+ built-in themes + custom themes
  • Filtering - Search and filter data
  • Keyboard Nav - Full keyboard support for accessibility
  • Virtual Scroll - Handle thousands of items efficiently
  • Events - Change, select, scroll events
  • Responsive - Works on desktop, tablet, mobile

Troubleshooting Quick Links

ProblemSolution

Next Steps

  1. New to ListBox? Start with Getting Started
  2. Need selection control? Go to Selection Modes
  3. Working with data? Read Data Binding
  4. Organizing large lists? Visit Sorting & Grouping
  5. Styling your list? Visit Styling & Appearance
  6. Advanced features? Explore Advanced Features
  7. Solving problems? Check Common Tasks

See Also

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.66%
按下载量换算29

Claude

30.03%
按下载量换算22

Cursor

17.73%
按下载量换算13

Gemini CLI

9.7%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills