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
180
Retrieve the result of a summary
posted

Hi,

I have a XamWebGrid setup with a SummaryRow that calculates the count of the rows. I changed the style of the PagerSettings object by modifying the PagerCellControl template.

My issue is that inside PagerCellControl, the following code does not keep the summary value updated after I filter the rows.

<TextBlock Text="{Binding Path=Cell.Row.Manager.SummaryResultCollection[0].Value, RelativeSource={RelativeSource TemplatedParent}}"/>

Should I get the count of the rows from some other place?

Thanks,
Jimmi.

  • 6475
    Suggested Answer
    posted

    Hi Jimmy,

    There's a property off the SummaryRowSettings called "SummaryExecution", which specifies when the summary calculation takes place relative to filtering and paging. The default value of SummaryExecution is "PriorToFilteringAndPaging", which is why you're getting this behavior.

    You should change it to something else, e.g. "AfterFilteringAndPaging".

    Hope that helps,