开发者

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

开发者 https://www.devze.com 2023-01-08 13:24 出处:网络
I want to use overflow for the contents in day of asp.net calendar control. I am trying e.Cell.Style[\"height\"] = \"80px\";

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

精彩评论

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

关注公众号