Form Decorator not workeing for controls contained in a hidden div

2 posts, 0 answers
  1. ony
    ony avatar
    1 posts
    Member since:
    Mar 2008

    Posted 14 Apr 2008 Link to this post

    if controls are contained in a div with style display:none the look in Internet Explorer 7 is incorrect.

    see the sample:

    ------------------------------------------------------------------------------

    <!

    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <

    html xmlns="http://www.w3.org/1999/xhtml" >

    <

    head runat="server">

    <title>Decorate button</title>

    <script type="text/javascript">

    function

    pageLoad() {

    }

    function

    show_div()

    {

    var div = $get("divContainer");

    div.style.display=

    "";

    }

    </script>

    </

    head>

    <

    body>

    <form id="form1" runat="server">

    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">

    </telerik:RadScriptManager>

    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" />

    <div style="display:none;" id="divContainer">

    <div style="padding:3px;">

    <span>

    <input id="btnLoginOk" type="button" value="Conferma"/>

    </span>

    <span>

    <input id="btnLoginCancel" type="button" value="Annulla" title="" />

    </span>

    </div>

    </div>

    <input id="btnShow" type="button" value="Show" onclick="show_div();" />

    </form>

    </

    body>

    </

    html>

  2. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 17 Apr 2008 Link to this post

    Hi Onorio,

    Thank you for the feedback. I was able to reproduce the issue. Indeed, while the buttons look fine in FireFox and IE6, their background image is not as wide as it should in IE7 (which is strange, as in general something that works in IE6 works in IE7 as well). We logged the problem, and we will do our best to have it fixed for Q1 SP1.

    Best regards,
    Tervel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top