开发者

want to use overflow for the contents in day of asp.net calendar control

I want to use overflow for the contents in day of asp.net calendar control. I am trying

e.Cell.Style["height"] = "80px";
e.Cell.Style["overflow"] = "a开发者_JS百科uto";

in a dayrender event of asp.net calendar control.


you should be able to assign the style attribute programatically. i.e.

e.Cell.Attributes.Add("style", "height: 80px; overflow: auto;");

Otherwise, take a look at the CSS classes generated by the control:

.ajax__calendar_container {height: 80px; overflow: auto;}

All the classes are documented at the bottom of this page:

http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/Calendar/Calendar.aspx

Good Luck,

Marko

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜