This is a migrated thread and some comments may be shown as answers.

ListView.GroupHeaderTemplate BindingContext is null

8 Answers 144 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anthony
Top achievements
Rank 1
Anthony asked on 04 Jul 2015, 12:57 AM

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

Sort by
0
Ves
Telerik team
answered on 08 Jul 2015, 03:14 PM
Hi Anthony,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
atrcg
Top achievements
Rank 1
answered on 23 Jul 2015, 07:49 PM

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

0
Ves
Telerik team
answered on 27 Jul 2015, 11:14 AM
Hi,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Erik
Top achievements
Rank 2
answered on 18 Aug 2015, 11:25 PM
Is there a chance that this build is available yet?   I am just running into a need to do this, but got hung up because of the null binding context on a string property.  Thanks in advance.
0
Pavel R. Pavlov
Telerik team
answered on 21 Aug 2015, 07:01 AM
Hello Erik,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Erik
Top achievements
Rank 2
answered on 21 Aug 2015, 12:36 PM

Awesome!  Looking forward to it and will update this thread with results.  Thanks, Pavel.

-Erik

 

0
Pavel R. Pavlov
Telerik team
answered on 26 Aug 2015, 11:44 AM
Hi 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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Erik
Top achievements
Rank 2
answered on 27 Aug 2015, 11:18 AM

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

Cheers -

Erik

Tags
General Discussions
Asked by
Anthony
Top achievements
Rank 1
Answers by
Ves
Telerik team
atrcg
Top achievements
Rank 1
Erik
Top achievements
Rank 2
Pavel R. Pavlov
Telerik team
Share this question
or