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

Redraw Speed

5 Answers 212 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fernando
Top achievements
Rank 1
Fernando asked on 06 Mar 2012, 10:51 AM
Hello.

I'm trying Telerik components and at the moment I'm testing the RadGrid. Surprisingly, the grid seems to be very easy to use but somewhat slow, when scrolling it. Am I doing something wrong or the grid is simply not that fast? When I say slow, I mean that the grid does about 8 fps with 3 columns in full screen, this makes the application look very sluggish. I got to knew Telerik from a software the company has installed, and the RadGrid this software has also suffers from slow speeds.

Thank you for any info on this subject.

5 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 06 Mar 2012, 11:38 AM
Hello Fernando,

I haven't found that scrolling is slow on the grid under these circumstances. Here's a really basic exmaple that you might want to try (it just assumes there's a RadGridView on a form). Please let me know how you find this.

using System.Windows.Forms;
using Telerik.WinControls.UI;
using System.Collections.Generic;
 
 
 
namespace RadControlsWinFormsApp1
{
    public partial class Form1 : Form
    {
 
        public Form1()
        {
            InitializeComponent();
 
            this.WindowState = FormWindowState.Maximized;
 
            List<Product> products = new List<Product>();
            int i = 1;
            while (i <= 300)
            {
                products.Add(new Product("Product " + i.ToString(), i, i, i));
                i++;
            }
            this.radGridView1.DataSource = products;
            this.radGridView1.ReadOnly = true;
            this.radGridView1.AutoGenerateColumns = true;
        }
 
    }
 
    public class Product
    {
 
        public Product(string name, decimal length, decimal height, decimal width)
        {
            this.Name = name;
            this.Length = length;
            this.Height = height;
            this.Width = width;
        }
 
        public Product()
        {
        }
 
        public string Name
        { get; set; }
 
        public decimal Length
        { get; set; }
 
        public decimal Height
        { get; set; }
 
        public decimal Width
        { get; set; }
 
 
    }
}
0
Fernando
Top achievements
Rank 1
answered on 07 Mar 2012, 01:00 PM
Yes. It remains as sluggish as I described my first post (slower actually, because it has an additional column and the grid is bigger). This happens in every computer I've tested. I can only assume the control is this slow, unless I see a video of such control scrolling smoothly. How many FPS (more or less) the grid does over there when scrolling with the mouse?

Of course if I reduce the form's size, the grid speed increases. I'm running 1920x1200 but the staggering is noticeable also in lower resolutions, like 1440x900. We have an application that the company uses (from where I first heard about Telerik controls) that also suffers from this issue. I tried it at home also with the same result. I'm getting quite hard to believe that you are unable to reproduce such thing when I can replicate it in over 20 computers, unless our understanding of slow scrolling is somewhat different.

Since my computer knowledge extends itself for more than 2 decades we can roll out any issue related to OS and hardware. Well, this is what I wish to believe, could be wrong though.
0
Richard Slade
Top achievements
Rank 2
answered on 07 Mar 2012, 03:28 PM
Hello Fernando,

You may want to have a look at the demos that were installed on your PC with the controls under GridView > Performance. It may also be possible for you to increase performance by rolling your own data management operations using Virtual Mode. You can read more about Virtual Mode in this help topic

Hope that helps
Richard
0
Fernando
Top achievements
Rank 1
answered on 07 Mar 2012, 05:41 PM
I see. So I guess I'm not doing anything wrong, thus I can now draw conclusions. Nonetheless, thanks for your support.
0
Jack
Telerik team
answered on 09 Mar 2012, 09:30 AM
Hi Fernando,

I can confirm that RadGridView is slower compared to the default MS DataGridView when used in full screen mode. The performance will decrease further when there are a lot of cells visible on screen. All this is caused by the visual styles and the animations that we support. We are constantly trying to optimize our controls, however all these features come at a cost, and we will never reach the same scrolling performance as presented in default WinForms controls.

If you have any other questions, do not hesitate to ask.
 
Greetings,
Jack
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Fernando
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Fernando
Top achievements
Rank 1
Jack
Telerik team
Share this question
or