Available in the Full Version
Data Grid - Custom Summaries
This sample uses CTP (Community Technical Preview) features. The API and behavior may change when these features are released with full support.
This sample demonstrates how to create custom summaries for the igGrid control. When defining a custom method (SummaryOperand with type Custom) you point the summary feature to a custom function to calculate the row summary. When the compactRenderMode option is set to false, the results from both the predefined and the custom methods are positioned in summary rows according to their sort order as defined by the Order property in the igGridSummaries' defaultSummaryMethods option. The sample has two custom summary functions (countTrueValues, countFalseValues) each calculating the number of true or false values in a boolean column. Those summary functions are then used for the "Make Flag" column.