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

RadGridView Performance Issue in Virtual Mode

1 Answer 177 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Carlo Baliello
Top achievements
Rank 1
Carlo Baliello asked on 24 Apr 2010, 11:26 AM
Hello Telerik Team,

I'm using 2010.1 409 Winform Telerik library on both VStudio 2005 and VStudio 2008.

I'm trying to implement a (rad)gridview in Virtual Mode using more than 150000 records/table.

Moving across the first 1000 records is very flawless.
Instead, if I try to scroll to the last records, the grid significantly slow down.

The following code should reproduce the problem:
        public Form1() 
        { 
            InitializeComponent(); 
            this.radGridView1.EnableSorting = false
            this.radGridView1.EnableFiltering = false
            this.radGridView1.EnableGrouping = false
 
            this.radGridView1.Dock = DockStyle.Fill; 
            this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill; 
            this.radGridView1.CellValueNeeded += new GridViewCellValueEventHandler(radGridView1_CellValueNeeded); 
            this.radGridView1.CellValuePushed += new GridViewCellValueEventHandler(radGridView1_CellValuePushed); 
            radGridView1.VirtualMode = true
            radGridView1.ColumnCount = 10
            //// Increase RowCount --> increase memory usage: why??
            this.radGridView1.RowCount = 150000
        } 
 
        void radGridView1_CellValuePushed(object sender, GridViewCellValueEventArgs e) 
        { 
        } 
        void radGridView1_CellValueNeeded(object sender, GridViewCellValueEventArgs e) 
        { 
            e.Value = e.RowIndex + e.ColumnIndex; 
        } 

The standard C# DataGridView, with the same code, works without any problem.

Thanks in advance.

Carlo

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 29 Apr 2010, 08:59 AM
Hi Carlo Baliello,

Sorry for the introduced inconvenience.

This a known issue in the RadGridView virtual mode functionality. Currently we are working on redesigning all parts of the grid control to improve the feature set, performance and memory usage. More information for RadGridView vNEXT you can find here.

The improved virtual mode for RadGridView will be available for Q2 2010 release.

Your Telerik points have been updated.

Kind regards,

Julian Benkov
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
Carlo Baliello
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or