Logo di Syncfusion Maui Datapager

Syncfusion Maui Datapager

Organizzazione
syncfusion
syncfusion-maui-datapager

Implement and customize Syncfusion .NET MAUI DataPager (SfDataPager) for paginating large datasets into manageable pages. Use when working with MAUI paging, SfDataPager, normal or on-demand paging, numeric buttons, navigation buttons, page navigation, PageChanging or PageChanged events, or styling the pager.

Panoramica

Autoresyncfusion
Repositorymaui-ui-components-skills
Nome della skillsyncfusion-maui-datapager
Stelle
61
Fork
1
File inclusi
5
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 5 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da syncfusion su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Syncfusion Maui Datapager in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-datapager
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/syncfusion/maui-ui-components-skills.git /tmp/maui-ui-components-skills
mkdir -p .claude/skills
cp -r /tmp/maui-ui-components-skills/skills/syncfusion-maui-datapager .claude/skills/syncfusion-maui-datapager
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Syncfusion Maui Datapager in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Syncfusion Maui Datapager non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Syncfusion Maui Datapager non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Implementing .NET MAUI DataPager

A comprehensive skill for implementing and customizing the Syncfusion .NET MAUI DataPager (SfDataPager) control. The DataPager is a standalone pagination control that divides large datasets into manageable pages and integrates seamlessly with data display controls like the SfDataGrid.

When to Use This Skill

Use this skill when you need to:

  • Display large datasets in paginated views in a .NET MAUI application
  • Add pagination to a SfDataGrid or any items control
  • Choose between normal paging (load all upfront) and on-demand paging (load per page)
  • Configure numeric and navigation buttons (First, Last, Previous, Next)
  • Control button shape, size, font size, or orientation
  • Style the pager with custom colors or button templates
  • Handle page navigation events (PageChanging, PageChanged)
  • Navigate pages programmatically (MoveToFirstPage, MoveToPage, etc.)
  • Enable auto-ellipsis for large page ranges
  • Optimize memory for very large datasets with ResetCache

Component Overview

SfDataPager is a standalone pagination control for .NET MAUI that provides:

Core Features:

  • Normal and On-Demand paging modes
  • First, Last, Previous, Next, and numeric button navigation
  • Programmatic page switching (MoveToFirstPage, MoveToLastPage, MoveToNextPage, MoveToPreviousPage, MoveToPage)
  • Customizable display modes (choose which buttons to show)
  • Button shape, size, and font size customization
  • Horizontal or vertical orientation
  • Auto-ellipsis support for large page ranges
  • Comprehensive style and template customization via DataPagerStyle
  • PageChanging and PageChanged events
  • Memory optimization with ResetCache for on-demand paging

Data Flow:

  • Bind data collection to SfDataPager.Source
  • SfDataPager.PagedSource exposes the current page's data
  • Bind PagedSource to a display control's ItemsSource (e.g., SfDataGrid)

NuGet Package: Syncfusion.Maui.DataPager

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Prerequisites (.NET 9 SDK, Visual Studio / VS Code / Rider)
  • Install the Syncfusion.Maui.DataPager NuGet package
  • Register Syncfusion core handler in MauiProgram.cs
  • Import the DataPager namespace (XAML and C#)
  • Create data model (OrderInfo) and repository (OrderInfoRepository)
  • Add SfDataPager with SfDataGrid (XAML and C#)
  • Source-to-PagedSource binding pattern

Paging Modes & Navigation

📄 Read: references/paging-modes.md

  • Normal paging (load entire collection upfront)
  • On-demand paging (UseOnDemandPaging, OnDemandLoading event)
  • LoadDynamicItems(StartIndex, PageSize)
  • PageCount for on-demand paging (instead of Source)
  • ResetCache() for memory optimization
  • Programmatic navigation (MoveToFirstPage, MoveToLastPage, MoveToNextPage, MoveToPreviousPage, MoveToPage)
  • Animated page navigation (MoveToPage with duration)
  • Boundary behavior (no exceptions at first/last page)

Customization

📄 Read: references/customization.md

  • ButtonShape (Rectangle, Circle)
  • NumericButtonsGenerateMode (Auto, explicit via NumericButtonCount)
  • ButtonSize and ButtonFontSize
  • DisplayMode (None, First, Last, Previous, Next, Numeric, and combinations)
  • AutoEllipsisMode (None, Before, After, Both)
  • AutoEllipsisText customization
  • Orientation (Horizontal, Vertical)

Appearance & Styling

📄 Read: references/appearance.md

  • DataPagerStyle overview and DefaultStyle assignment
  • Background colors (DataPager, navigation buttons, numeric buttons)
  • Selection colors (numeric button selection background and text)
  • Disabled navigation button colors
  • Navigation button templates (FirstPageButtonTemplate, LastPageButtonTemplate, NextPageButtonTemplate, PreviousPageButtonTemplate)

Events

📄 Read: references/events.md

  • PageChanging event (PageChangingEventArgs: OldPageIndex, NewPageIndex)
  • PageChanged event (PageChangedEventArgs: OldPageIndex, NewPageIndex)
  • When to use each event (before vs after navigation)
  • Event handler signatures and wiring (XAML and C#)

Quick Start

A minimal DataPager bound to a collection and paired with a SfDataGrid:

csharp
using Syncfusion.Maui.DataPager;
using Syncfusion.Maui.DataGrid;
using System.Collections.ObjectModel;

public class OrderInfo
{
    public string? OrderID { get; set; }
    public string? CustomerID { get; set; }
    public string? ShipCountry { get; set; }

    public OrderInfo(string orderId, string customerId, string country)
    {
        OrderID = orderId;
        CustomerID = customerId;
        ShipCountry = country;
    }
}

var orders = new ObservableCollection<OrderInfo>
{
    new OrderInfo("1001", "Maria Anders", "Germany"),
    new OrderInfo("1002", "Ana Trujillo", "Mexico"),
    new OrderInfo("1003", "Ant Fuller", "Mexico"),
    // ... more items
};

SfDataPager dataPager = new SfDataPager();
dataPager.PageSize = 15;
dataPager.NumericButtonCount = 10;
dataPager.Source = orders;

SfDataGrid dataGrid = new SfDataGrid();
dataGrid.ItemsSource = dataPager.PagedSource;

this.Content = dataGrid;

Namespace (XAML):

xaml
xmlns:pager="clr-namespace:Syncfusion.Maui.DataPager;assembly=Syncfusion.Maui.DataPager"

Don't forget to register the Syncfusion core handler in MauiProgram.cs:

csharp
builder.ConfigureSyncfusionCore();

Forgetting ConfigureSyncfusionCore() causes runtime errors when rendering the DataPager.

Common Patterns

Bind a DataGrid to paged data

xaml
<Grid>
    <Grid.RowDefinitions>
        <RowDefinition Height="*" />
        <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <syncfusion:SfDataGrid x:Name="dataGrid"
                           Grid.Row="0"
                           ItemsSource="{Binding Source={x:Reference dataPager}, Path=PagedSource}" />
    <Border Grid.Row="1" Padding="5">
        <pager:SfDataPager x:Name="dataPager"
                           PageSize="15"
                           NumericButtonCount="10"
                           Source="{Binding Orders}" />
    </Border>
</Grid>

Load pages on demand

csharp
dataPager.UseOnDemandPaging = true;
dataPager.PageCount = 67; // total pages, e.g. 1000 items / 15 per page
dataPager.OnDemandLoading += (sender, e) =>
{
    dataPager.LoadDynamicItems(e.StartIndex, orders.Skip(e.StartIndex).Take(e.PageSize));
};

Navigate programmatically

csharp
dataPager.MoveToFirstPage();
dataPager.MoveToPreviousPage();
dataPager.MoveToNextPage();
dataPager.MoveToLastPage();
dataPager.MoveToPage(5);
// Animated navigation: MoveToPage(pageIndex, durationMs, animate)
dataPager.MoveToPage(5, 300, true);

Style the pager

csharp
DataPagerStyle style = new DataPagerStyle();
style.NumericButtonSelectionBackgroundColor = Color.FromArgb("#CDB4DB");
style.NumericButtonBackgroundColor = Color.FromArgb("#FFC8DD");
style.NavigationButtonBackgroundColor = Color.FromArgb("#90E0EF");
style.NavigationButtonIconColor = Color.FromArgb("#0077B6");
dataPager.DefaultStyle = style;

Choosing the right reference

User wants to...Read
Set up the DataPager for the first timereferences/getting-started.md
Choose normal vs on-demand paging or navigate pagesreferences/paging-modes.md
Change button shape, size, display mode, ellipsis, or orientationreferences/customization.md
Apply colors, styles, or button templatesreferences/appearance.md
Handle page change eventsreferences/events.md

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Syncfusion Maui Datapager?

Implement and customize Syncfusion .NET MAUI DataPager (SfDataPager) for paginating large datasets into manageable pages. Use when working with MAUI paging, SfDataPager, normal or on-demand paging, numeric buttons, navigation buttons, page navigation, PageChanging or PageChanged events, or styling the pager.

Perché usare Syncfusion Maui Datapager su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Syncfusion Maui Datapager è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Syncfusion Maui Datapager in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-datapager. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Syncfusion Maui Datapager?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Syncfusion Maui Datapager?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Syncfusion Maui Datapager: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Syncfusion Maui Datapager è gratuita?

È pubblicata su GitHub da syncfusion. Consulta il repository per i termini di licenza. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇