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

Empty gridview takes 5 seconds to show up + Hierarchical subproperties

4 Answers 135 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erwin
Top achievements
Rank 1
Erwin asked on 12 Oct 2009, 06:47 PM
Hello world,

I am discovering Telerik and I am pretty impressed so far. However, two problems have arisen:
1. Why does it take 5 seconds to show a simple form with just an empty Gridview inside? With the standard datagridview, it is instantaneous. Am I missing a point? I can't believe everyone who uses the Gridview has to endure waiting for 5 seconds even for empty objects.
You can easily reproduce this problem (just create two forms, one with the rgv and one without, launched from a third one). No need to set up any properties to the rgv to see the low display speed.
I tried to search on the forum for similar issues but Murphy's law is there for me: as the two links I have found are not working!
http://www.telerik.com/community/forums/winforms/gridview/initializing-slow.aspx

WinForms Controls - GridView Forum - Initializing slow

WinForms Controls - GridView Forum - Performance to open

... why just opening the window is very slow? with 4 controls of telerik, it takes 3
or more seconds... Imagine 10 controls!! thanks!! Reply. Telerik Admin. ...

http://www.telerik.com/community/forums/winforms/gridview/performance-to-open.aspx


2. When do you intend to implement support for subproperties in the hierarchical view? This is really a must have. I have found forum posts dated 2 years back and still no support for this feature... Is it on the roadmap somewhere? Is there a workaround better than building a virtual database (with plenty of IDs to link the objects together)? For your reference, the latest forum post I found on the subject was this one:

Thanks a lot for your help!

Erwin



4 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 15 Oct 2009, 02:50 PM
Hi Erwin,

Thank you for writing.

The flexibility and unique visual appearance of our controls are based on specifically designed UI framework which provides to our customers a wide range of customizations options. This architecture adds gradients, animation, and element based styling, which of course, leads to some performance penalties, but we believe does not affect the overall user experience. This additional logic is not supported by the Standard Windows Forms Controls and thus they do not provide such great extensibility options. Moreover, the Standard Windows Forms Controls are wrappers of Win32 controls and they are initially loaded when the Operating System starts. Thus, their performance is favored by the Operating System, which is not the case with RadControls for WinForms.

1. I have tried similar scenario like the described - a form with empty grid - and loading takes less than a second.  What are the hardware specifications of the PC which you are using? Are there any other controls or code in the form or your project? If you still think that loading times are unacceptable, please send me a small sample that demonstrates your scenario. This will help me to investigate the issue further.

2. The latest version - Q2 2009 - still does not support sub-properties in the hierarchical views. The good news is that currently we are re-writing the data layer of RadGridView where this feature is present. We hope that we shall introduce this in the next release Q3 2009 or in its Service Pack 1.

As to the broken link, we have moved the thread to our support system because of a customer request. 

All the best,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Erwin
Top achievements
Rank 1
answered on 15 Oct 2009, 09:45 PM
Hi Martin,

Thanks for your detailed answer, I appreciate a lot. I retried the radgrid with an empty project and the performance difference is around 1 seconds (against 5 in my other project, with about 15 columns and a child template). However, it is only the first time a form with radgridview is launched, as you explained it may have to do with the fact that Telerik is not loaded with Win32 controls. My config is a Core 2 Duo 2 Ghz, with 2 Gbytes RAM and on Windows XP, so I don't think it is the hurdle here.
Do you think they might be a convenient way to preload the radgrid when the application is starting, so that when the user first wants to display the form with the radgrid, it can show up very quickly?
Otherwise I can still create a new form, show it and hide it, but that would not be very clean.

Great to know that you are working on the subproperties implemented in RadGrid! I look forward to testing it as soon as it is released (meanwhile I still need to check that there are no unexpected behaviour with the radgrid I have implemented, and if the performance is good with a high frequency refresh rate).

Cheers,

Erwin
0
Erwin
Top achievements
Rank 1
answered on 15 Oct 2009, 10:02 PM
By the way, do you know how we can easily make a cell of a radgrid blink each time it is being updated (through notifications from the bindingsource)?
This a a very useful feature for applications with streaming data.
Thanks!
0
Martin Vasilev
Telerik team
answered on 21 Oct 2009, 10:42 AM
Hi Erwin,

Thank you for getting back to me.

Regarding the performance, there is no way for pre-loading RadControls in memory. It seems that your hardware specification cannot be a real bottleneck for the case of the described loading delays. You can try to optimize performance with Native Image Generator tool. As I said, there are some performance penalties with RadControls but they are not  so significant to affect the overall user experience. Please, check carefully all your code during form loading -- there could be a room for optimization.

As to the question about blinking specified cell -- RadGridView does not support such a feature, and I am afraid that it will not be an easy task to implement it. Intricate animation and complex notification mechanism will be needed for handling the underling DataSource change.

Write me back if you have other questions.

Regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Erwin
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Erwin
Top achievements
Rank 1
Share this question
or