- 2007年8月24日 23:35
- ASP.NET AJAX
またもや、DropDownなんですが...
CalendarExtenderで表示したカレンダーにDropDownが被っていると、DropDownの方が上に表示されてしまいます。
その他のコントロールの場合は大丈夫そうなので、相変わらずDropDownとの相性のようです。
今回の問題は結構有名なのか、すぐに解決方法が見つかりました。
How do I get the CalendarExtender to show over a dropdown?
要約すると、スタイルシートに以下を追加します。
/* CalendarExtender */
.ajax__calendar
{
position: relative;
left: 0px !important;
top: 0px !important;
visibility: visible; display: block;
}
.ajax__calendar iframe
{
left: 0px !important;
top: 0px !important;
}
CalendarExtenderのCssClassでajax__calendarを指定します。
こんな感じ
<ajaxToolkit:CalendarExtender ID="***Extender" runat="server" CssClass="ajax__calendar" TargetControlID="***" PopupButtonID="***Image" />
IE以外のブラウザできちんと動作するかは確認してないので分かりませんが...
Comments:0
Trackbacks:0
- TrackBack URL for this entry
- http://magicbox.sakura.ne.jp/mt/mt-tb.cgi/443
- Listed below are links to weblogs that reference
- CalendarExtenderでカレンダーがDropDownの下に表示される from 爆裂!C#野郎