Hi,
I am trying to create the equivalent of a header template in the RadListView by using grouping with a single group.
The problem is that the group header template is invoked twice instead of once, resulting in 2 headers displayed on top of each other with a slight offset. Am I doing something wrong or is this a bug in RadListView?
Here are my relevant code snippets:
list.GroupHeaderTemplate = new DataTemplate(() => {
return new Label { HorizontalTextAlignment = TextAlignment.Center, Text = "Welcome to Xamarin Forms!" }; // This is invoked twice instead of once
});
list.GroupDescriptors.Add(new PropertyGroupDescriptor { PropertyName = nameof(TestItem.GroupKey) });
Where the ItemsSource is a List<TestItem> with 50 items and the TestItem class is defined as:
class TestItem
{
static object groupKey = new object();
public object GroupKey { get { return groupKey; } }
}