Redraw Speed

6 posts, 0 answers
  1. Fernando
    Fernando avatar
    4 posts
    Member since:
    Mar 2012

    Posted 06 Mar 2012 Link to this post

    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.
  2. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Mar 2012 Link to this post

    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; }
     
     
        }
    }
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Fernando
    Fernando avatar
    4 posts
    Member since:
    Mar 2012

    Posted 07 Mar 2012 Link to this post

    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.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Mar 2012 Link to this post

    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
  6. Fernando
    Fernando avatar
    4 posts
    Member since:
    Mar 2012

    Posted 07 Mar 2012 Link to this post

    I see. So I guess I'm not doing anything wrong, thus I can now draw conclusions. Nonetheless, thanks for your support.
  7. Jack
    Admin
    Jack avatar
    2333 posts

    Posted 09 Mar 2012 Link to this post

    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 >>
Back to Top
UI for WinForms is Visual Studio 2017 Ready