Hi,
I'm been working with ListView and can't seem to get the BindingContext to be set to anything. My XAML looks as follows (excluding DelegateGroupDescriptor and ItemTemplate):
<dc:RadListView
x:Name="HistoryList"
ItemsSource="{Binding History}"
>
<dc:RadListView.GroupHeaderTemplate>
<DataTemplate>
<StackLayout >
<Label Text="{Binding }" TextColor="White"/>
</StackLayout>
</DataTemplate>
</dc:RadListView.GroupHeaderTemplate>
</dc:RadListView>
The Binding in the DataTemplate is set to null.
Could this be a bug or am I doing something wrong?
Thanks
8 Answers, 1 is accepted
This seems to work fine on my end. I have attached an updated version of the DataOperations page from our SDKBrowser solution, which comes with the suite. Please, make sure you are using the latest version of the controls and let us know if it works fine for you too.
You can modify this example or create another one, so the issue is reproduced and send it to us for review.
Best regards,
Ves
Telerik

This issue is present when the data type of the property used to make the grouping is of type string. In your example the data type of Age is integer, this case always works, but when you change group property by a property of type string then the grouping is ok, but the group header template binding context is null.
Thanks
Thanks for the additional details. Indeed, the issue is present as described with strings. We will include a fix in our next release. The next official release is planned for the end of September, however it is likely that we will release a service build at some point in August and it will include a fix for the problem.
Best regards,
Ves
Telerik

We are about to release a new version of our UI for Xamarin suite. The fix will be available for download by the end of the following week.
Please stay tuned.
Regards,
Pavel R. Pavlov
Telerik

Awesome! Looking forward to it and will update this thread with results. Thanks, Pavel.
-Erik
I am writing to inform you that the release is fact and users can download the new binaries from their accounts.
Please give it a try and let us know if the provided fixes work as expected on your side.
Regards,
Pavel R. Pavlov
Telerik

I can confirm that this release did indeed fix this problem! Thanks for the quick response.
Cheers -
Erik