New to Telerik UI for .NET MAUIStart a free 30-day trial

Restricting Expand/Collapse to Arrow Click in UI for .NET MAUI TreeView on Android and iOS

Updated on Feb 12, 2026

Environment

VersionProductAuthor
12.1.0Telerik UI for .NET MAUI TreeViewDobrinka Yordanova

Description

I want to configure the UI for .NET MAUI TreeView so that items only expand or collapse when clicking the arrow. Currently, on Android, the items expand or collapse when clicking anywhere on the item. This behavior is different from WinUI and MacCatalyst, where items expand or collapse only when clicking the arrow.

This knowledge base article also answers the following questions:

  • How to disable item tap for expand/collapse in UI for .NET MAUI TreeView on Android and iOS?
  • How to limit expand/collapse to arrow click in UI for .NET MAUI TreeView?
  • How to handle ItemTapped events in UI for .NET MAUI TreeView?

Solution

To restrict the expand/collapse behavior to only the arrow click in Android, handle the RadTreeView.ItemTapped event and set e.Handled to true. This prevents the default behavior of expanding or collapsing the item when tapping on the text.

csharp
private void treeView_ItemTapped(object sender, Telerik.Maui.Controls.ItemsView.ItemViewTappedEventArgs e)
{
    e.Handled = true; // Prevents expand/collapse on text tap
}

See Also