Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to calculate a master property based on values from a details collection

$
0
0

See the How to: Calculate a Property Value Based on Values from a Detail Collection help topic for more information.

See Also:
XPO Best Practices
How to display details collections with descendant classes filtered by object type in a DetailView

Question Comments

Added By: Robert Fuchs at: 1/28/2013 9:01:23 AM    

Not using XAF web, just to let you know that there are warnings in 12.2.5:

Warning     1     Could not resolve this reference. Could not locate the assembly "DevExpress.Web.ASPxEditors.v12.2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.     WinWebSolution.Web
Warning     2     Could not resolve this reference. Could not locate the assembly "DevExpress.Web.ASPxGridView.v12.2". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.     WinWebSolution.Web
Warning     3     The referenced component 'DevExpress.Web.ASPxEditors.v12.2' could not be found.      WinWebSolution.Web
Warning     4     The referenced component 'DevExpress.Web.ASPxGridView.v12.2' could not be found.      WinWebSolution.Web

Added By: Martin D. at: 6/15/2014 4:22:52 AM    

Hi,

I think this sample needs to be reviewed !
There's a problem with it. If You'd put a breakpoint in Product (line 44 or line 54) - the UpdateTotals.. method - get executed when I click "Reload" in the ListView.

Basically - if I have N+1 records in the ListView, and click refresh, it would go and fetch the details for all child records, and recalculate the "Total" on the master record. Though it should NOT.

That kinda the point of having it persistent right ? So it would get recalculated only when one updates the Details collection !


Viewing all articles
Browse latest Browse all 7205

Trending Articles