// To expand or collapse a group
var group = listView.DataSource.Groups[0];
listView.ExpandGroup(group);
listView.CollapseGroup(group);
//To expand or collapse all the groups
listView.ExpandAll();
listView.CollapseAll();
|
ListView.ItemTapped += ListView_ItemTapped;
private void ListView_ItemTapped(object sender, ItemTappedEventArgs e)
{
if(e.ItemType == Syncfusion.ListView.XForms.ItemType.GroupHeader)
{
var group = e.ItemData as GroupResult;
var key = group.Key;
}
} |