开发者

Accessing each CalendarDay in Calendar Control without using the DayRender Event

开发者 https://www.devze.com 2022-12-15 08:08 出处:网络
I need to manipulate the appearance of the an ASP.NET calendar control.I have data that I need to display on the calendar control but I don\'t want to access the data from within the DayRender event.H

I need to manipulate the appearance of the an ASP.NET calendar control. I have data that I need to display on the calendar control but I don't want to access the data from within the DayRender event. How do I access the Ca开发者_如何学运维lendarDay object that represents each day in the calendar without being within the DayRender event?


Using reflector, it appears that OnDayRender is the only place the CalendarDay class is exposed, so there isn't any other option without developing a custom solution. Even with a custom calendar control, you could only collect the CalendarDay objects within RenderDays/OnDayRender. That is the method they are explicitly created, unfortunately.

0

精彩评论

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

关注公众号