基于 MVC 框架的项目的 Outlook 样式事件日历 [英] Outlook style events calendar for project based on MVC framework

查看:21
本文介绍了基于 MVC 框架的项目的 Outlook 样式事件日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要大型日历(不是 jQuery datepicker),可以安排事件并在日历上显示它们.日历必须支持月/周/日视图.当视图更改(AJAX 刷新)时,日历不重新加载整个页面是非常可取的.它必须易于定制(CSS 主题)和本地化.它应该支持拖动&下降(对于预定的事件).此类日历必须从 JSON 数据片段在客户端呈现.

I need large Calendar (not jQuery datepicker) with possibility to schedule events and show them on calendar. Calendar must support month/week/day views. It is very desirable for Calendar not to reload whole page when view changes (AJAX refresh). It must be easily customizable (CSS themes) and localizable. It should support drag & drop (for scheduled events). Such Calendar must be rendered on client side from JSON data snippet.

我知道要找到与所有这些匹配的日历的要求太多,但它们都很重要.我找到了一些免费的开源日历控件,但几乎所有控件都针对 ASP.NET 而不是 MVC 进行了严格调整,或者具有非常重"的 JavaScript 代码库.理想情况下,我将其视为 jQuery 扩展,但 不是 服务器端 ASP.NET 控件.我发现最好的即用型解决方案是 Adam Shaw 的 FullCalendar (http://arshaw.com/fullcalendar/).它是 jQuery 插件,我可以根据需要更改其源代码.

I know there are too many requirements to find Calendar that matches them all but all they are important. I have found some free open source Calendar controls, but almost all are tightly tuned for ASP.NET but not MVC or have very "heavy" JavaScript codebase. Ideally i see it as jQuery extension but not server side ASP.NET control. The best ready-to-use solution I have found is FullCalendar by Adam Shaw (http://arshaw.com/fullcalendar/). It is jQuery plugin which source code I can change to fit my needs.

如果您能提出一些更好的现有解决方案,我将不胜感激.

If you can suggest some better existing solutions I'll be very appreciative.

推荐答案

其他选项:

它使用 jQuery 和相同的事件对象类型.Fullcalendar 也支持很多自定义钩子.我已经很容易地添加了基于标签和其他功能的颜色编码.

It uses jQuery and the same event object type. Fullcalendar supports a lot of hooks for customization too. I've added color coding based on tags and other features rather easily with it.

这篇关于基于 MVC 框架的项目的 Outlook 样式事件日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆