This is a migrated thread and some comments may be shown as answers.

[Solved] Scroll can't keep up with the mouse When scrolling many columns

4 Answers 102 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Minwei
Top achievements
Rank 1
Minwei asked on 14 Jan 2011, 11:06 AM
We occured a problem when scrolling a huge amount of columns(about 180 columns). The horizonal scroll bar just can't keep up with the mouse.
The mouse is on the right side, while the scrollbar is just in orginal place. The CPU is busy processing the layout.
code fragment:
	for (int i = 0; i < format.names.Count; i++)
{
GridViewDataColumn column = new GridViewDataColumn();
column.Header = format.names[i];
column.DataMemberBinding = new System.Windows.Data.Binding("[" + i.ToString() + "]");
this.gv.Columns.Add(column);
}
The data columns are generated dynamiclly in code behind, not declare in markup.



4 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 14 Jan 2011, 11:12 AM
Hello,

This is since the columns will be measured and cells will be added on demand (the default grid behavior with enabled horizontal virtualization). You can improve this if you set ColumnWidth for the grid to some pixel value - for example ColumnWidth="100".

Regards,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Minwei
Top achievements
Rank 1
answered on 17 Jan 2011, 02:32 AM
Thanks Vlad ,

We have set the width to 100, it improved a little.
Then we changed the grid to silverlight DataGrid, it also has this problem, but it's much more responsive.

We want to make use of RadGridView for other functions such as filtering.
Is there anything else I can do to improve the scrolling performance and user experience?
0
Vlad
Telerik team
answered on 17 Jan 2011, 08:27 AM
Hello,

With our Q1 2011 Beta (will be released after a month) you will get much better horizontal scrolling. We rewrote completely our horizontal virtualization. 

All the best,
Vlad
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Minwei
Top achievements
Rank 1
answered on 18 Jan 2011, 06:02 AM
That's great.
We are looking forward to the improvement.

Thanks.
Tags
GridView
Asked by
Minwei
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Minwei
Top achievements
Rank 1
Share this question
or