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. Image for the cookie policy date

GridTreeControl slow to scroll when window is large

Hi,

I am finding that the GridTreeControl scrolls very slowly when there are lots of cells visible on the screen. It may be the rendering of cells which is slow. The cells just contain strings.

SfDataGrid is coping with the same situation perfectly well.

Setting SupportsVisualStyles to False helps, but scrolling performance is still poor.

Is SfDataGrid doing something clever to speed scrolling up? Can GridTreeControl do the same thing?

I am using version 11.3040.0.30

Thanks
Tim


performance_vs2010_4ef4bd0e.zip

1 Reply

GA Gobinath A Syncfusion Team October 19, 2013 03:24 AM UTC

Hi Tim,

Sorry for the delay in getting back to you.

We have analyzed the performance issue of GTC with our source, the cells width and height in GTC is smaller than the SfDataGrid and so it holds maximum number of cells in the view and it takes time to create more cells while scrolling. Moreover the SfDataGrid implementation is different from GTC, it is a fast Grid. To increase scrolling performance in GTC, we need to increase the cell width and height as following code snippet.

 

Code snippet[C#]:

this.treeGrid.ModelLoaded += new EventHandler(treeGrid_ModelLoaded);

 

void treeGrid_ModelLoaded(object sender, EventArgs e)

 {

   this.treeGrid.DefaultColumnWidth = 120;

   this.treeGrid.InternalGrid.RowHeights.DefaultLineSize = 40;

 }

 

Please let us know if you have any queries.

 

Regards,
Gobinath A


Loader.
Live Chat Icon For mobile
Up arrow icon