Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1080
Summary in grouped rows
posted

Hi,

Is there the possibility to put summary in the grouped rows?
Take the xamFeatureBrowser XamDataGrid-RowSummaries-CustomStyling example:
1)Set Summary Diasplay Area to TOP
2)Set Group by Display Area to DataRecordsOnly
3)Drag Team column and group by Team: we see two grouped rows
4)Expand the first row and see the summary row right below the grouped row.
What I ask is: can i have the summaries directly in the grouped row?
(or can I format the option -InGroupByRecords- in a way that allow correct horizontal positions of the summary text in the corresponding column?)
Another question:
I need to allow users to click on summary values to perform further actions based on the source column of the selected summary value in the grouped row selected.
So I have to retrieve the source colum name and also navigate somehow the hierarchical tree of the groupBy to find all the parent groups if any.
How can I navigate through the GroupBy tree?

VALERIO

Parents
  • 69686
    Suggested Answer
    posted

    Hello Valerio,

    Regarding formatting : You can try the StringFormat property of the SummaryDefinition. You can see an example of that in the XamFeatureBrowser under RowSUmmaries - Formatting Row Summaries.

    If you want to be able to click or perform some action on the summaries, you can see an example of that in the XamFeatureBrowser under RowSummaries - Custom Button in Summary Template. For this, you would have to retemplate the SummaryResultsPresenter. You can also handle the PreviewMouseLeftButtonDown event of the XamDataGrid and use the Snoop Tool to investigate the element tree of the XamDataGrid and you application and determine what you have to find/retemplate.

     

Reply Children