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

FormDecorator not working after upgrade to Windows 7/IE9

2 Answers 43 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 2
James asked on 16 Mar 2011, 08:03 PM
I recently upgraded my laptop to Windows 7, and also upgraded my browser to IE9.

After installing Visual Studio (2008) I installed the RadControls (Q1 2010). Everything worked fine until I ran my application, and noticed that the FormDecorator was no longer working for buttons. More specifically, the FormDecorator does not work when a form contains multiple buttons. If there's only one button it works, but with multiple buttons nothing happens. The decorator works fine for other controls, like CheckBoxes and RadioButtons. I did turn on compatibility view to see if it was a browser issue, but that didn't make any difference.

Considering that the site uses a variation of the Sunset theme (Red, orange, brown, etc.), gray/blue buttons stick out like a sore thumb.

What can I do to fix this problem? I've included a picture to illustrate the problem, and also some code to show how I'm creating the decorators in HTML.

Thanks.

<telerik:RadFormDecorator ID="ButtonDecorator" DecoratedControls="Buttons" Skin="Sunset" RegisterWithScriptManager="true" EnableRoundedCorners="false" runat="server" />  
<telerik:RadFormDecorator ID="CheckBoxDecorator" runat="server" Skin="Sunset" DecoratedControls="CheckBoxes" EnableRoundedCorners="false" />
<telerik:RadAjaxLoadingPanel ID="DefaultLoadingPanel" runat="server" Skin="Sunset"></telerik:RadAjaxLoadingPanel>

2 Answers, 1 is accepted

Sort by
0
Accepted
Niko
Telerik team
answered on 17 Mar 2011, 12:09 PM
Hi James,

Please, use only one FormDecorator per page as their declarations my be contradicting - like in your case. Each FormDecorator tries to change the DOM tree in such a way that only the specified group of DecoratedControls would be decorated. Therefore your code snippet should be the following:
<telerik:RadFormDecorator ID="theFormDecorator" DecoratedControls="Buttons,CheckBoxes" Skin="Sunset" RegisterWithScriptManager="true" EnableRoundedCorners="false" runat="server" />

Hope this helps.

Regards,
Niko
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.
0
James
Top achievements
Rank 2
answered on 17 Mar 2011, 04:23 PM
Ah... works like a charm. I never had a problem using multiple decorators before the upgrade to Windows 7/IE9, so I presumed that I was using them correctly.

Thank you so much!
Tags
FormDecorator
Asked by
James
Top achievements
Rank 2
Answers by
Niko
Telerik team
James
Top achievements
Rank 2
Share this question
or