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

RadFormDecorator is causing RadButton to load slowly

1 Answer 34 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Gary Meagher
Top achievements
Rank 1
Gary Meagher asked on 18 Nov 2010, 07:27 PM

Removing RadFormDecorator  solves the RadButton problem but then all my asp:Buttons are displayed without the skin.
I also tried to replace all the asp:Buttons with RadButtons but that opens a whole new pandora's box with javascript errors etc.
Is there a way to not use RadFormDecorator but still apply skin to asp:Button controls?

1 Answer, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 19 Nov 2010, 10:44 AM
Hi Gary,

It is not necessary to remove RadFormDecorator if you want RadButton to work correctly you should use the following CSS fix:

<style type="text/css">
    .RadButton button,
    .RadButton input[type='submit'],
    .RadButton input[type='reset'],
    .RadButton input[type='button'],
    .RadButton input[type='checkbox'],
    .RadButton input[type='radio'],
    .RadButton select,
    .RadButton input,
    .RadButton textarea,
    .RadButton button,
    .RadButton select
    {
         visibility: visible!important;
        }
</style>

This will allow you to use both controls on the same page without the annoying postponed appearance of the buttons left part. 

But if you want to remove RadFormDecorator and still want the buttons to be skinned, you should use RadButton control, otherwise the button will not be styled.

Kind regards,
Bojo
the Telerik team
Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
Tags
FormDecorator
Asked by
Gary Meagher
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Share this question
or