Strange issue with horizontal scrolling

3 posts, 0 answers
  1. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jul 2011

    Posted 29 Sep 2014 Link to this post

    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. Marcel
    Marcel avatar
    21 posts
    Member since:
    Jul 2011

    Posted 29 Sep 2014 in reply to Marcel Link to this post

    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
  3. Yoan
    Admin
    Yoan avatar
    1213 posts

    Posted 29 Sep 2014 Link to this post

    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.
     
Back to Top