Microsoft Technology, .Net, BizTalk, Sharepoint & etc.

Liedong(Ken) Zheng, Senior SharePoint Developer at SIMPLOT

Ajax Calendar doesn’t render properly

Posted by ken zheng on May 22, 2008

If your Calendar Extender doesn’t render properly, normally because its’ style has been overriden by the css. As Calendar heavily use DIV, TABLE. To recover this just wrap your textbox and calendar in <DIV class=”calendarContainer “>

and put the following lines in your css:

.calendarContainer table

{
width:0px;

height:0px;
}

.calendarContainer table tr td

{
padding:0;
margin:0;
}

And check your css file doesn’t include

div
{
    min-height: 0;
}

it will set haslayout = true, and you have no way to set to false later.

Look http://www.satzansatz.de/cssd/onhavinglayout.html for more details

One Response to “Ajax Calendar doesn’t render properly”

  1. Mark said

    Thanks a million! This fixed my problem that was costing me hours of frustration!!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>