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

Strange issue with horizontal scrolling

2 Answers 235 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcel
Top achievements
Rank 1
Iron
Marcel asked on 29 Sep 2014, 09:04 AM
Hi there,

I'm having some strange troubles with the RadGridView. I'm populating the grid dynamically in code behind in the Loaded event because the number of columns needed is not known at design time. So far so good and after the data is loaded the grid looks fine. Column and row virtualization are enabled by default, vertical scrolling works and performance is really good. BUT horizontal scrolling does look really strange. The column headers do not move at all and the visible cells just move out to the left side of the grid while something that looks like empty grid rows moves into view by scrolling further to the right. This happens out of the box before I even start fiddling around with the various properties of the RadGridView.

If I turn off column virtualization part of the issue goes away. Headers still don't move and performance of loading and scrolling becomes really bad because there can be hundreds of columns. I tried to change almost every setting on the grid but I can't seem to get rid of the problem...

Regards,
Marcel

2 Answers, 1 is accepted

Sort by
0
Marcel
Top achievements
Rank 1
Iron
answered on 29 Sep 2014, 09:25 AM
Ok, after trying out some more things I found out that the course of the issue seemed to be the event where I create the grid's column definitions. I did it in the Loaded event which does work in the WPF DataGrid which I used before but does not work in the Telerik RadGridView. After changing it to the Initialized event the issue is not occuring anymore and the grid now works as expected.

Regards,
Marcel
0
Yoan
Telerik team
answered on 29 Sep 2014, 09:27 AM
Hello Marcel,

This is indeed strange. I would suggest to check the Styling or content mixed-up on scrolling troubleshooting article. If it does not help, you can try to isolate the problem in a sample project and send it to us for further investigation. You can check this blog post, which explains how to isolate a problem in a sample project.

As a side note - Do you have frozen columns?


Regards,
Yoan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Marcel
Top achievements
Rank 1
Iron
Answers by
Marcel
Top achievements
Rank 1
Iron
Yoan
Telerik team
Share this question
or