Single Value Custom Summaries

Hey,

I think I understand how to create a custom summary when you want to combine results in the display rows. However, we're paging rows for performance reasons, 40+ columns with summaries and 100,000+ resulting row. Of course paging these rows leads to the regular old summaries to combine what's displayed in the grid instead of a summary for the whole result. Do you have suggestions on the best way to accomplish this?

Here's what I'm attempting to do now.
1. Get the results I want to display.
2. Set a CustomSummary that is built to just display the result I want using grouped columns to decide on the value to display.

Is there another way of doing this? So a method doesn't have to be called over and over again.

Here's what I would like to do.
1. Get the results I want to display.
2. Loop through the summary cells and use row and groups to decide the result to display.
3. Put the result in the summary cell.

Steps 2 and 3 I would appreciate help with.

My current CustomSummary looks like this:

public class WholeResultSummary : SummaryBase {

//initialize with the item to display
WholeResultSummary(string val) {_val = val;}

//combine method does nothing since we're always display the
//initial value.
public override SummaryBase Combine(SummaryBase other) {
return this;
}

//just display the value.
public override string ToString() {
return _val;
}
}

Thanks for the awesome support,
Tobias

1 Reply

JJ Jisha Joy Syncfusion Team October 21, 2009 12:11 PM UTC

Hi Tobias,

Could you please let me know, which grid you are using, web or windows?

Regards,
Jisha

Loader.
Up arrow icon