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

RadGridView Auto Column Width Scroll Issue

1 Answer 107 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 12 May 2011, 09:37 PM
I've run into this issue in my application and was wondering if there's any way around it:

I bind data to my GridView and all my columns are set up to have a width of Auto. If there are too many columns, when the view opens, the horizontal scroll bar doesn't know how wide the GridView is. This is causing the horizontal scroll bar to dynamically resize itself as the user is scrolling to the right.

Is there any way to avoid this?


Thanks!

1 Answer, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 13 May 2011, 08:50 AM
Hello Ryan,

The behavior that you experience is due to the fact that the RadGridView is virtualized and its elements are created once they are visualized. That is why the scroll bar is calculated on the fly. The possible way for escaping this behavior would be to set the EnableColumnVirtualization to "False". However, if you have a lot of data loaded in the grid, you may probably experience some performance degrading. 
 

Kind regards,
Maya
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Ryan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or