We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom Sumary Calculation Paint Event

Thread ID:

Created:

Updated:

Platform:

Replies:

116876 Jun 24,2014 02:08 PM UTC Jun 25,2014 08:36 AM UTC Windows Forms 1
loading
Tags: GridGroupingControl
Felipe Bahiana Almeida
Asked On June 24, 2014 02:08 PM UTC

I have a grid with a column using a custom summary. The calculation of this sumary is very slow. It is ok to be slow on first load. The problem is that when a scroll the grid, it seems that the paint event of the grid triggers the custom sumary again, and since it is really slow, it make the whole application slow as well. 

Are there any options to configure the grid to make these calculations only once (when it is loaded) stead of every time it needs to paint?

Neelakandan Kannan [Syncfusion]
Replied On June 25, 2014 08:36 AM UTC

Hi Felipe,

 

Thank you for your interest in Syncfusion products.

 

 

 

Query

Custom Summary Calculation Paint Event

 

 

 

Suggestion-1:

We would like to let you know that the reported scenario can be resolved through the ScrollerWindow operation instead of invalidating whole grid when  inserting or removing records.

 

Please refer the below code:

bool optimizeScrolling = true;

this.grid.TableControl.OptimizeInsertRemoveCells = optimizeScrolling;

 

Suggetion-2:

The reported scenario can be resolved by Update and UpdateDisplayFrequency properties in the Grid. Because, the painting of the cell is delayed until gridGroupingControl.Update is called or until the time specified with GridGroupingControl.UpdateDisplayFrequency elapsed.

 

Please refer the below UG link:

http://help.syncfusion.com/ug/windows%20forms/grid/default.htm#!documents/listchangedperforman.htm

 

Please refer the below sample:

<Install Location>\Syncfusion\Essential Studio\[Version Number]\Windows\Grid.Grouping.Windows\Samples\Performance\Manual Total Summary Demo

 

 

Please let me know if you have any concerns.

 

Regards,

Neelakandan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;