ASP.NET:CSS 友好的日历控件
我正在使用内置的日历控件。它可以工作,但在一些地方 HTML 的渲染方式被破坏或者 CSS 不友好,并且不幸的是无法更改(它是硬编码的)。我希望他们能在 .NET 4.0 中解决这个问题,但据我所知,日历控件根本没有改变。另外,据我所知,Calendar 控件没有 CSS 适配器。
因此,我需要一个控件,该控件将:
- 允许我自定义每个单元格的内容(如 OnDayRender 工作)
- 允许我将 CSS 类分配给它可能呈现的任何 HTML
- 不自动呈现任何无法关闭的内容,布局代码除外
- 否自动回发或自动 JS 代码(我可以使用简单链接或自定义 JS 调用手动处理这些)
基本上是一个简单的日历视图控件,可以为我提供完整的渲染控制。
你会推荐什么?
I'm using the built-in Calendar control. It works, but in a few places the way the HTML is rendered is broken or not CSS-friendly and unfortunately cannot be changed (it's hard coded). I was hoping they would fix this in .NET 4.0, but as far as I can tell the Calendar control hasn't been changed at all. Also, as far as I know, there's no CSS adapter for the Calendar control.
So, I would need a control that would:
- Allow me to customize the content of each cell (like OnDayRender works)
- Allow me to assign CSS classes to any HTML it may render
- Not render anything automatically that cannot be turned off, except layout code
- No auto-postback or auto-JS code (I can handle these by hand using simple links or custom JS calls)
Basically a simple calendar view control that would give me full rendering control.
What would you recommend?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找不到我要找的东西,所以我写了一个: http://basecalendar.codeplex.com/
Couldn't find what I was looking for, so I wrote one: http://basecalendar.codeplex.com/