FormDecorator not working after upgrade to Windows 7/IE9

3 posts, 1 answers
  1. James
    James avatar
    5 posts
    Member since:
    Apr 2009

    Posted 16 Mar 2011 Link to this post

    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.


    <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. Answer
    Niko avatar
    383 posts

    Posted 17 Mar 2011 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
  4. James
    James avatar
    5 posts
    Member since:
    Apr 2009

    Posted 17 Mar 2011 Link to this post

    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!
Back to Top