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

Column Virtualization Functionality

1 Answer 137 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lars
Top achievements
Rank 1
Lars asked on 08 Apr 2013, 07:33 PM
Hi,
I am using the GridView control, and have all my columns and rows generated on the fly, so nothing is known until runtime. By using Row and Column virtualization, I'm able to speed up the load time quite a bit. There's really only 1 problem left I'm seeing. With row virtualization, as you scroll down, it waits until you stop, then loads the appropriate rows. However with column virtualization, it scrolls over and loads the columns as you're scrolling, so you then end up having to let go of the scrollbar, and grab it again to continue scrolling, as more columns are loaded. Can we get the column loading to work similarly to the row loading, and not have them load one by one and causing the scrollbar to act jumpy?

Thanks,
Ryan

1 Answer, 1 is accepted

Sort by
0
Nedyalko Nikolov
Telerik team
answered on 11 Apr 2013, 02:51 PM
Hello,

This could be the case if column width is set to "Auto" (this is the default value), then column width is calculated when all cells (from all visible rows) are measured and then scrollbar should be adjusted. The solution is very simple just add column width to every single column (then scrollbar will not be changed). For a convenience there is a property on a grid level ColumnWidth. 

Regards,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Lars
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Share this question
or