Syncfusion Maui Treegrid logo

Syncfusion Maui Treegrid

Organization
syncfusion
syncfusion-maui-treegrid

Implement and customize Syncfusion .NET MAUI Tree Grid (SfTreeGrid) for displaying and manipulating hierarchical data in a tabular view. Use when working with MAUI tree grids, SfTreeGrid, hierarchical data binding, tree grid columns, sorting, filtering, selection, freeze panes, or expander customization.

Overview

Publishersyncfusion
Repositorymaui-ui-components-skills
Skill namesyncfusion-maui-treegrid
Stars
61
Forks
1
Bundled files
10
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by syncfusion on GitHub. Read the source before you install it.

Installation

Install the Syncfusion Maui Treegrid AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-treegrid
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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-treegrid .claude/skills/syncfusion-maui-treegrid
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Syncfusion Maui Treegrid in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Syncfusion Maui Treegrid on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Syncfusion Maui Treegrid is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Implementing .NET MAUI Tree Grid

A skill for implementing and customizing the Syncfusion .NET MAUI Tree Grid (SfTreeGrid) control. The Tree Grid displays and manipulates hierarchical data in a tabular view, combining the clarity of a grid with the ability to present parent-child relationships in an organized structure. Built for excellent performance, it handles large datasets efficiently while maintaining smooth interaction.

When to Use This Skill

Use this skill when you need to:

  • Display hierarchical or self-relational data in a .NET MAUI app
  • Bind nested collections or self-referencing data sources to a tree grid
  • Configure tree grid columns (auto-generated or manually defined)
  • Choose and configure column types (Text, Numeric, Date, CheckBox, Template)
  • Apply column sizing modes (Fill, Auto, LastColumnFill, FitByCell, FitByHeader)
  • Sort or filter hierarchical data
  • Freeze columns for navigation across wide datasets
  • Implement row selection (Single, Multiple, SingleDeselect, None)
  • Customize the expander column (icon, width, placement, initial expansion state)
  • Style cells, headers, and rows (DefaultStyle, implicit styling, grid lines)
  • Expand/collapse nodes programmatically

Component Overview

SfTreeGrid is a high-performance hierarchical data grid for .NET MAUI that provides:

Core Features:

  • Two data binding modes — self-relational (ParentPropertyName/ChildPropertyName) and nested collection (ChildPropertyName)
  • Rich column types — Text, Numeric, Date, CheckBox, Template
  • Auto-generated or manually defined columns
  • Data operations — sorting (single/multi-column, tri-state, custom) and filtering (programmatic, condition-based)
  • Freeze panes — left and right column freezing
  • Selection — Single, Multiple, SingleDeselect, None
  • Expander customization — icon templates, column placement, width, model-driven expansion state
  • Styling — column-level, implicit (TargetType), DefaultStyle, grid line control

NuGet Package: Syncfusion.Maui.TreeGrid

Documentation and Navigation Guide

Getting Started

📄 Read: references/getting-started.md

  • Prerequisites and project setup (.NET 9 SDK, Visual Studio 2022 v17.12+)
  • Installing the Syncfusion.Maui.TreeGrid NuGet package
  • Registering the Syncfusion core handler in MauiProgram.cs
  • Defining data models and ViewModels
  • Basic TreeGrid implementation (XAML and C#)
  • Importing the TreeGrid namespace

Data Binding

📄 Read: references/data-binding.md

  • Binding self-relational data (ParentPropertyName, ChildPropertyName, SelfRelationRootValue)
  • Binding nested collections (ChildPropertyName)
  • Binding IEnumerable sources
  • AutoExpandMode (None, RootNodesExpanded, AllNodesExpanded)
  • Programmatic node expansion (ExpandAllNodes, ExpandNode, by level/index/business object)
  • Programmatic node collapse (CollapseAllNodes, CollapseNode)
  • NodeExpanding and NodeCollapsing events
  • IsExpanded property on TreeNode

Columns

📄 Read: references/columns.md

  • Automatic column generation (AutoGenerateColumnsMode)
  • Auto-generation modes (None, Reset, ResetAll, RetainOld, SmartReset)
  • Customizing auto-generated columns (AutoGeneratingColumn event)
  • Manually generating columns
  • Column manipulation (add, access, clear, remove)
  • Column-to-data-type mapping

Column Types

📄 Read: references/column-types.md

  • TreeGridColumn base properties (MappingName, HeaderText, Width, Format)
  • TreeGridTextColumn, TreeGridNumericColumn, TreeGridDateColumn, TreeGridCheckBoxColumn, TreeGridTemplateColumn
  • DisplayBinding and value converters
  • Text alignment (HeaderTextAlignment, CellTextAlignment)
  • Padding (HeaderPadding, CellPadding)
  • Header customization (HeaderText, HeaderTemplate)
  • Hiding columns (Visible)
  • Formatting values (C2, N2, P2, date formats)

Column Sizing

📄 Read: references/column-sizing.md

  • ColumnWidthMode options (Fill, Auto, LastColumnFill, FitByCell, FitByHeader, None)
  • DefaultColumnWidth
  • Retrieving auto-calculated width (ActualWidth)
  • Per-column ColumnWidthMode
  • Minimum and maximum column widths (MinimumWidth, MaximumWidth)

Expander Customization

📄 Read: references/expander-customization.md

  • Loading expander icon through DataTemplate (ExpanderIcon)
  • Using DataTemplateSelector for expanded/collapsed icons
  • Changing the expander column (ExpanderColumn)
  • Customizing expander column width (ExpanderWidth)
  • Controlling initial expansion through a model property (ExpandStateMappingName)

Sorting & Filtering

📄 Read: references/sorting-filtering.md

  • Programmatic sorting (SortColumnDescriptions, SortColumnDescription)
  • Sorting modes (Single, Multiple, None)
  • Tri-state sorting (AllowTriStateSorting)
  • Showing sort numbers (ShowSortNumbers)
  • Sorting gesture (tap vs double-tap, SortingGestureType)
  • Sorting events (SortColumnsChanging, SortColumnsChanged)
  • Disabling sorting per column (AllowSorting)
  • Custom sorting (SortComparers, IComparer, ISortDirection)
  • Filter levels (Root, All, Extended)
  • Programmatic view filtering (View.Filter, View.RefreshFilter)
  • Condition-based filtering (Equals, Contains, Does Not Equal)
  • Clearing filters

Selection

📄 Read: references/selection.md

  • Selection modes (None, Single, Multiple, SingleDeselect)
  • Getting selected rows (SelectedIndex, SelectedRow, SelectedRows)
  • Programmatic selection (index, row, multiple rows, SelectAll)
  • Clearing selection (SelectionMode.None, ClearSelection)
  • Selection events (SelectionChanging, SelectionChanged)
  • Customizing selection appearance (SelectionBackground, SelectedRowTextColor)
  • Binding selection properties to ViewModel

Freeze Panes

📄 Read: references/freeze-panes.md

  • Freezing left columns (FrozenColumnCount)
  • Freezing right/footer columns (FooterFrozenColumnCount)
  • Freeze pane line color (FreezePaneLineColor)
  • Freeze pane line thickness (FreezePaneLineStrokeThickness)

Styling

📄 Read: references/styling.md

  • Column cell styling (CellStyle)
  • Column header styling (HeaderStyle)
  • Implicit styling (TreeGridCell, TreeGridExpanderCell, TreeGridHeaderCell, TreeGridRow, TreeGridHeaderRow)
  • DefaultStyle (HeaderRowBackground, RowBackground, RowTextColor)
  • Applying styles from app/page resources
  • Grid line visibility (Both, Horizontal, Vertical, None)
  • Grid line color and stroke customization
  • Styling priority order

Quick Start

A minimal TreeGrid bound to a nested collection:

csharp
using Syncfusion.Maui.TreeGrid;
using System.Collections.ObjectModel;

public class EmployeeInfo
{
    public string? FirstName { get; set; }
    public string? LastName { get; set; }
    public double Salary { get; set; }
    public ObservableCollection<EmployeeInfo> Children { get; set; } = new();
}

SfTreeGrid treeGrid = new SfTreeGrid();
treeGrid.ItemsSource = new ObservableCollection<EmployeeInfo>
{
    new EmployeeInfo
    {
        FirstName = "James", LastName = "Smith", Salary = 2000000,
        Children = new ObservableCollection<EmployeeInfo>
        {
            new EmployeeInfo { FirstName = "Andrew", LastName = "Fuller", Salary = 1200000 }
        }
    }
};
treeGrid.ChildPropertyName = "Children";
this.Content = treeGrid;

Namespace (XAML):

xaml
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.TreeGrid;assembly=Syncfusion.Maui.TreeGrid"

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

csharp
builder.ConfigureSyncfusionCore();

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

Common Patterns

Display hierarchical data with a specific column

xaml
<syncfusion:SfTreeGrid x:Name="treeGrid"
                       ItemsSource="{Binding EmployeeCollection}"
                       ChildPropertyName="Children"
                       AutoGenerateColumnsMode="None">
    <syncfusion:SfTreeGrid.Columns>
        <syncfusion:TreeGridTextColumn HeaderText="First Name" MappingName="FirstName" />
        <syncfusion:TreeGridTextColumn HeaderText="Last Name" MappingName="LastName" />
        <syncfusion:TreeGridNumericColumn HeaderText="Salary" MappingName="Salary" Format="C2" />
    </syncfusion:SfTreeGrid.Columns>
</syncfusion:SfTreeGrid>

Bind self-relational data

csharp
treeGrid.ItemsSource = employeeViewModel.Employees;
treeGrid.ParentPropertyName = "ID";
treeGrid.ChildPropertyName = "ReportsTo";
treeGrid.SelfRelationRootValue = -1;
treeGrid.AutoExpandMode = TreeGridExpandMode.RootNodesExpanded;

Apply default styling

csharp
treeGrid.DefaultStyle.HeaderRowBackground = Color.FromArgb("#0074E3");
treeGrid.DefaultStyle.HeaderRowTextColor = Colors.White;
treeGrid.DefaultStyle.RowBackground = Color.FromArgb("#AFD5FB");
treeGrid.DefaultStyle.RowTextColor = Color.FromArgb("#212121");

Choosing the right reference

User wants to...Read
Set up the TreeGrid for the first timereferences/getting-started.md
Bind self-relational or nested datareferences/data-binding.md
Auto-generate or manually define columnsreferences/columns.md
Pick a column type or format cell valuesreferences/column-types.md
Control column widths automaticallyreferences/column-sizing.md
Customize the expand/collapse icon or columnreferences/expander-customization.md
Sort or filter hierarchical datareferences/sorting-filtering.md
Select rows or respond to selection changesreferences/selection.md
Keep columns visible during horizontal scrollreferences/freeze-panes.md
Style cells, headers, rows, or grid linesreferences/styling.md

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Syncfusion Maui Treegrid AI skill do?

Implement and customize Syncfusion .NET MAUI Tree Grid (SfTreeGrid) for displaying and manipulating hierarchical data in a tabular view. Use when working with MAUI tree grids, SfTreeGrid, hierarchical data binding, tree grid columns, sorting, filtering, selection, freeze panes, or expander customization.

Why use Syncfusion Maui Treegrid on TypingMind?

Because you install it once and use it with any model. Syncfusion Maui Treegrid is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Syncfusion Maui Treegrid in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/syncfusion/maui-ui-components-skills/tree/master/skills/syncfusion-maui-treegrid. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Syncfusion Maui Treegrid?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Syncfusion Maui Treegrid?

As many as you like. As long as a model supports skills, you can use Syncfusion Maui Treegrid with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Syncfusion Maui Treegrid AI skill free?

It is published on GitHub by syncfusion. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇