Hi,
I am using the XamCalculationManager tied into the XamDataGrid.
For the most part this is working great, however the calculations in the grid do not seem to be able to recognise Named References added to the calculation manager?
Can this be done? (Or is there a workaround?)
Example attached using Infragistics WPF 13.2.
Regards,
Stephen
Hi Team,
I am getting a performance hit, when i am applying a formula for 2 fields with 3000 rows. First summary is immediately getting calculated, but others are taking more than 30secs.
Thanks,
Sasidhar Muvvala
Note: you can control when calculations are performed via the following properties exposed off XamCalculationManager:
You can disregard that question about performance hit - I was using the Named Reference over 40 chained calculations - not really a representative test!!
Thanks for your help.
Steve
Thank you Joe, that was helpful and worked as intended.
I did notice, however, that it seems to incur a rather extreme performance hit when used over a large number of calculated columns and rows. Is that a known issue?
I am going to try installing v15.1 as we are currently on v13.2 which is a couple of years behind now to see if that addresses the issue.
Hi Stephen,
Yes, you can use Named References inside a field's formula but you need to prefix the name with '//' Otherwise, it will look for another field by that name. The following should work:
<igDP:FieldCalculationSettings Formula="round(([Prop1]+[Prop2])/([Prop3]+1), 2)*[//MyNamedReference]" ReferenceId="CalcRef"/>
I hope this was helpful.
Joe