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.
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,