ListView.GroupHeaderTemplate BindingContext is null

9 posts, 0 answers
  1. Anthony
    Anthony avatar
    17 posts
    Member since:
    May 2011

    Posted 03 Jul 2015 Link to this post

    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

  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 08 Jul 2015 Link to this post

    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
  3. DevCraft banner
  4. atrcg
    atrcg avatar
    1 posts
    Member since:
    Aug 2007

    Posted 23 Jul 2015 in reply to Ves Link to this post

    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

  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 27 Jul 2015 Link to this post

    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
  6. Erik
    Erik avatar
    43 posts
    Member since:
    Jan 2011

    Posted 18 Aug 2015 Link to this post

    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.
  7. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 21 Aug 2015 Link to this post

    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
  8. Erik
    Erik avatar
    43 posts
    Member since:
    Jan 2011

    Posted 21 Aug 2015 in reply to Pavel R. Pavlov Link to this post

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

    -Erik

     

  9. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1183 posts

    Posted 26 Aug 2015 Link to this post

    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
  10. Erik
    Erik avatar
    43 posts
    Member since:
    Jan 2011

    Posted 27 Aug 2015 Link to this post

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

    Cheers -

    Erik

Back to Top
DevCraft banner