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

GridView Horizontal Scrolling is Laggy

3 Answers 452 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Curtis asked on 12 Dec 2013, 03:18 PM
Hello, I have a RadGridView that has potentially thousands of rows and 30-50 columns. The vertical scrolling works great even with 150,000+ rows. However, the horizontal scrolling is very slow and jerky. Also the scroll bar starts off about half the width of the GridView and then shrinks as you scroll to the right. This makes the cursor move off the scroll bar. I've tried changing a few settings, but so far nothing has made any difference.

I am using auto generated columns because I don't know until run-time what columns will be in the grid.

Thanks,
Curtis

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 12 Dec 2013, 04:33 PM
Hi Curtis,

I would suggest you to check our online documentation on performance tips and trick with RadGridView.

Another tip I can suggest as to the stuck when scrolling, is to set ScrollMode="Deferred". You can check our "Scrolling" WPF Demo as an example.

Does any of those suggestions help?

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Curtis
Top achievements
Rank 1
answered on 12 Dec 2013, 05:21 PM
No that doesn't really help. I'm mostly concerned with the horizontal scroll bar changing sizes. I don't understand why it can't figure out the total width ahead of time. Deferred scrolling makes this issue even worse because you have to scroll to the max it will let you, then let go, then the scroll bar will shrink and you can scroll some more. You have to repeat this until you get to the end.

All of the demos use a fixed width and height which is not very practical.

This is what I have right now. Products is an ObservableCollection<DynamicObject>. Could the DynamicObjects be confusing it? I'm using DynamicObjects because I want the product attributes to be the column headers. So I add each attribute from an IEnumable<Attribute> as a property to the DynamicObject.
<telerik:RadGridView IsReadOnly="True"
ItemsSource="{Binding Products}"
AutoGenerateColumns="true"
RowIndicatorVisibility="Collapsed"
EnableRowVirtualization="True"
EnableColumnVirtualization="True"
SelectionMode="Extended"
ShowColumnFooters="True"
GroupRenderMode="Flat"
CanUserFreezeColumns="False"
CanUserResizeColumns="False"/>

0
Dimitrina
Telerik team
answered on 16 Dec 2013, 09:22 AM
Hi,

Have you tried applying the lightweight templates? If the scrolling performance is still bad, would you please send me a test project demonstrating the issue?

Regards,
Didie
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Curtis
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Curtis
Top achievements
Rank 1
Share this question
or