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

Liedong(Ken) Zheng, Senior SharePoint Developer at SIMPLOT

Archive for May 22nd, 2008

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

Posted in .Net, VS2008 | Tagged: , | 1 Comment »