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:

     <telerik:GridViewDataColumn.GroupFooterTemplate>
                                    <DataTemplate>
                                        <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
                                                    </Hyperlink>
                                            </TextBlock>
                                        </StackPanel>
                                    </DataTemplate>
                                </telerik:GridViewDataColumn.GroupFooterTemplate>

     

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

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    280 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?

    Regards,
    Stefan Nenchev
    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. UI for WPF is Visual Studio 2017 Ready
Back to Top