Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions MAUI/Kanban-Board/Sorting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
layout: post
title: Sorting in .NET MAUI Kanban control | Syncfusion®
description: Learn here all about Sorting support in Syncfusion® .NET MAUI Kanban (SfKanban) control and more.
platform: maui
control: Kanban (SfKanban)
documentation: ug
keywords: .net maui Kanban sorting, sfKanban sorting in .net maui, .net maui Kanban sorting support.
---

# Card Item Sorting in .NET MAUI Kanban (SfKanban)

The Kanban control supports customizable card sorting within columns based on specific data fields such as priority, due date, or status. Sorting can be applied programmatically and updated dynamically at runtime using following properties
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Highlight key words

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated sir.


* `SortingMappingPath` - Used to map the sorting field to a property name in the `KanbanModel` or `CustomModel`. The default value is `string.Empty`, in which case the cards will not be sorted.
* `SortingOrder` - Used to define the direction of cards sorting within each column.
* `Ascending` - Cards with lower values appear first.
* `Descending` - Cards with higher values appear first.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add note: This property is applicable only when a valid value is assigned to SortingMappingPath.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note added sir.

N> This property is applicable only when a valid value is assigned to SortingMappingPath.

## Sorting Behavior in DragEnd Event
Copy link
Collaborator

@Karthickmani97 Karthickmani97 Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename subtitle to Customize card order with sorting configuration

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated sir.


The `DragEnd` event in the `Kanban` control supports three sorting approaches:
Copy link
Collaborator

@Karthickmani97 Karthickmani97 Oct 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorting in the Kanban control can be implemented using the following approaches.

  • Custom
  • Index

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated sir.


* **Automatic Sorting**: Call RefreshKanbanColumn() to sort the target column based on predefined sorting properties after a card is dropped.
* **Custom Sorting**: Use e.TargetColumn.Items to access and sort the cards manually using your own logic.
* **No Sorting**: If no sorting logic is applied in the DragEnd event, the dropped card remains in its new position without reordering the column.
3 changes: 2 additions & 1 deletion maui-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -782,8 +782,9 @@
<li><a href="/maui/kanban-board/Getting-Started">Getting Started</a></li>
<li><a href="/maui/kanban-board/migration">Migrate from Xamarin.Forms</a></li>
<li><a href="/maui/kanban-board/column">Column</a></li>
<li><a href="/maui/kanban-board/workflows">Workflows</a></li>
<li><a href="/maui/kanban-board/cards">Cards</a></li>
<li><a href="/maui/kanban-board/workflows">Workflows</a></li>
<li><a href="/maui/kanban-board/sorting">Sorting</a></li>
<li><a href="/maui/kanban-board/Localization">Localization</a></li>
<li><a href="/maui/kanban-board/events">Events</a></li>
</ul>
Expand Down