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
466
Custom SummaryCalculator without Aggregating by DataRecords?
posted

Hello. I use XamDataGrid with data virtualizing datasource (from sql). I want allow users make some calculations with built-in summary calculators. The problem is that default calculators go throw all of visible datarecords in grid. In this case grid request all data from my virtualizing datasource and this takes a lot of time.

The best solution for this problem is making SELECT COUNT()/SUM()/MIN()/MAX() query to database from EndCalculation method instead of aggregation. How can I do this? I'm trying to comment this lines

//foreach ( DataRecord record in dataRecords )

 //{

  //    object dataValue = record.GetCellValue( sourceField, CellValueType.EditAsType );

 //    calculator.Aggregate( dataValue, this, record );

//}

in SummaryResult Class (at XamDataGrid source files). But when I compile library whith this changes I can't use it in my application.

Error 12 The type 'Infragistics.DependencyObjectNotifier' is defined in an assembly that is not referenced. You must add a reference to assembly 'InfragisticsWPF4.v11.1, Version=11.1.20111.2113, Culture=neutral, PublicKeyToken=null'. C:\Users\....cs 9 18 MyWPFApplication

(References contains last version of InfragisticsWPF4.v11.1 from C:\Program Files (x86)\Infragistics\NetAdvantage 2011.1\WPFCommon\Bin\InfragisticsWPF4.v11.1.dll)

How can I get away from Aggregation method without recompiling? Or how I must compile it correctly? :(

Thanks.

Parents
No Data
Reply Children