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

Decoration delay ...

13 Answers 281 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Henrik Brinch
Top achievements
Rank 2
Henrik Brinch asked on 21 Apr 2008, 06:26 AM
Am I the only one that experiences a delay in the rendering - e.g. you can see the original controls during page load and the skin is applied when the page is finished loading.   This of course dramatically increases when the page being loaded is large and doesn't look professional.   ... and yes, I am using <head runat="server" ...>     In fact this is also slightly reproducible in the online demos.

Any workarounds on this?

13 Answers, 1 is accepted

Sort by
0
DonKitchen
Top achievements
Rank 1
answered on 21 Apr 2008, 12:02 PM
Yes, I have also noticed this.  You just beat me to the post.

This definitely seems to be an issue that would prevent using this in a real world situation, at least for me.

Any way to resolve this?
0
Martin
Telerik team
answered on 22 Apr 2008, 02:15 PM
Hi Chris Ruegsegger,

RadFormDecorator is still in development, and I believe we will manage this issue soon.

All the best,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Henrik Brinch
Top achievements
Rank 2
answered on 22 Apr 2008, 06:51 PM
Glad to hear you are aware of the problem, as I also think this makes it quite useless.

Btw. is it possible to create a mouse-down effect when actually clicking decorated buttons?
0
Martin
Telerik team
answered on 25 Apr 2008, 05:00 AM
Hello Henrik Brinch,

Yes, the mousedown change of looks is put down on our todo list for RadFormDecorator.

Best wishes,
Martin Ivanov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Patrick Cravens
Top achievements
Rank 2
answered on 30 Apr 2008, 11:57 AM
<< RadFormDecorator is still in development, and I believe we will manage this issue soon.>>

Do you have a date on when it will be 'out of development'? Thanks
0
Tervel
Telerik team
answered on 06 May 2008, 10:58 AM
Hi all,

Let me present you with some extra information about how the FormsDecorator works, what can and what cannot be done, how it should be done, and what our plans for the control are.

About the delay
----------------------
Please note that at present all you needed to do is add the decorator to the page, no other changes to your code required. Obviously, the decorator does its work on the client.

The FormDecorator control is implemented as a standard MS AJAX control. What this means is that its initialization code runs at window.onload. Thus, in most cases one will be able to see the original "browser" checkboxes and buttons, before the decorator replaces them.

Now, from 1 and 2 it follows that using this approach there will be a delay, and it won't majically go away.


However, our plans for the development of the control is to provide a set of server classes that will inherit from the default ASP.NET classes - Button, CheckBox, etc. These classes will output from the server the same rendering that is currently created on the client - much like any other Telerik control. Thus, the delay will be gone, however you will need to do some extra work on your pages and replace the declarations, e.g. <asp:Button> with <telerik:Button>.

We also plan to provide "skinning" for <textarea> and <textbox> elements, and possibly some others (e.g. <label> elements). There also will be a mousedown CSS, as already mentioned.
I cannot give you an ETA on this, but since the FormDecorator si generating a lot of interest from the community, we will do our best to have these features implemented in Q2 2008.

I hope this information is helpful and I will keep you updated as new features come along.


All the best,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Christopher Blickley
Top achievements
Rank 2
answered on 06 May 2008, 05:39 PM
I've noticed the delay as well, and it seems very similar to a post I just made in the RadSplitter forum, where using it full screen, there is a noticeable delay before everything resizes properly.

Perhaps it is something with MS Ajax, but it seems strange that there is such a delay before window.onload firing, if that is where everything is happening.  I haven't done much testing yet regarding the window.onload stuff in relation to FormDecorator, but it standard applications, the scripts in window.onload fire almost immediately with no visible delay.

I found with RadMenu (Ajax version) that the RadMenu control is not available from window.onload....it seems that the initialization happens in a delayed manner as well (I had to move all my code to the OnLoad event of the RadMenu iteself).  Not really a problem, but it seems that the delay in initialization of the controls is pretty consistent across the Telerik ASP.NET Ajax control suite.

Is something happening in MS Ajax, or with the initialization of the controls that causes the delay?  This certainly was not the case with the classic controls where the intialization was very fast and non-detectable.

-Chris
0
Tervel
Telerik team
answered on 09 May 2008, 08:29 AM
Hello Christopher,

As far as the FormsDecorator is concerned, this forum thread had us start some additional investigation and experiments how to improve things, and we came up with a couple of very good ideas that will likely eliminate the visual delay altogether (even with the decoration process still being on the client-side). It is unlikely that we will manage to make all the necessary changes in the remaining days to the SP1 scheduled for next week, yet change is on the way - and you will see some very interesting developments on the FormDecorator this quarter.

Regarding your other observation: all MS AJAX controls are initialized by the MS AJAX clientside framework on window.onload. To gain a reference to the control, the correct event is Sys.Application.add_load, rathen than window.onload. Please examine the  MS AJAX help article:
http://www.asp.net/AJAX/Documentation/Live/ClientReference/Sys/ApplicationClass/default.aspx


Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Doug Beard
Top achievements
Rank 2
answered on 16 Mar 2009, 04:27 PM
I still see the problem, has there been any progress on the draw delay?
0
Georgi Tunev
Telerik team
answered on 18 Mar 2009, 09:04 AM
Hello Doug,

The decoration of the controls is much faster with the latest version, however there is still slight delay that could be seen if the decorator is used in a heavy page with many controls that must be decorated on it. Such problem should not exist once we provide server-side replacements of the decorated controls which will happen later this year.
 

Greetings,
Georgi Tunev
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Sam
Top achievements
Rank 1
answered on 29 Apr 2009, 09:09 PM
Is there any plans to include dropdownlists? I've seen other asp.net controls out there that include every possible control in skinning.

0
Georgi Tunev
Telerik team
answered on 30 Apr 2009, 06:21 AM
Hello Sam,

Yes - this feature is scheduled for the Q2 2009 release.


Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FormDecorator
Asked by
Henrik Brinch
Top achievements
Rank 2
Answers by
DonKitchen
Top achievements
Rank 1
Chris Ruegsegger
Top achievements
Rank 1
Martin
Telerik team
Henrik Brinch
Top achievements
Rank 2
Patrick Cravens
Top achievements
Rank 2
Tervel
Telerik team
Christopher Blickley
Top achievements
Rank 2
Doug Beard
Top achievements
Rank 2
Georgi Tunev
Telerik team
Sam
Top achievements
Rank 1
Share this question
or