GroupFooterTemplate get group key

2 posts, 0 answers
  1. burning
    burning avatar
    1 posts
    Member since:
    Nov 2012

    Posted 16 Dec 2015 Link to this post

     I have template:

                                        <StackPanel Orientation="Vertical" Margin="0,10">
                                            <TextBlock Margin="0,0,0,2"> 
                                                <Hyperlink Command="{Binding SellingCatalog.DailyTotalCommand, Source={StaticResource Locator}}"  CommandParameter="{Binding Key}" >
                                                   Daily Total


    How can I send group key to CommandParameter
    Like that: CommandParameter="{Binding Key}" 

  2. Stefan Nenchev
    Stefan Nenchev avatar
    236 posts

    Posted 21 Dec 2015 Link to this post

    Hi Viachaslau,

    Can you please test the approach from the following code snippet:

    Hyperlink Command="{Binding SellingCatalog.DailyTotalCommand, Source={StaticResource Locator}}" 
            CommandParameter="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:GridViewGroupRow}}, Path=Group.Key}">Daily Total</Hyperlink>

    Please, update me if this was helpful. Otherwise, would it be possible to share some more details on your setup and what exactly you are trying to achieve with the group key?

    Stefan Nenchev
    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 R3 2016 release webinar banner
Back to Top