jQuery 基于MVC框架的项目Outlook风格事件日历

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/806212/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 09:49:30  来源:igfitidea点击:

Outlook style events calendar for project based on MVC framework

jqueryasp.net-mvccalendar

提问by Roman

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.

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

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 notserver 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.

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

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

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

回答by T. Stone

Other option:

其他选择:

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.

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

回答by user357068

Can you try our jquery calendar plugin. wdCalendar is a jquery based google calendar clone. It cover most google calendar features. http://www.web-delicious.com

你能试试我们的 jquery 日历插件吗?wdCalendar 是一个基于 jquery 的谷歌日历克隆。它涵盖了大多数谷歌日历功能。http://www.web-delicious.com

* Day/week/month view provided.
* create/update/remove events by drag & drop.
* Easy way to integrate with database.
* All day event/more days event provided.

It's totally free(LGPL license)

完全免费(LGPL 许可)

回答by user361921

I use Web2Cal recently to represent a large set of data. The event/callback structure is different from most calendars. If you are a java developer like me (with lesser Javascript expertise) you will appreciate Web2Cal. It does not have the rather cryptic javascript syntaxes and code style. More event and function based. Moreover, this is a more complete solution like Recurring etc. I would have been happier if the code was more open. I believe, their higher end version has the code available but not the lower versions.

我最近使用 Web2Cal 来表示大量数据。事件/回调结构与大多数日历不同。如果您是像我这样的 Java 开发人员(具有较少的 Javascript 专业知识),您会喜欢 Web2Cal。它没有相当神秘的 javascript 语法和代码风格。更多基于事件和功能。此外,这是一个更完整的解决方案,如 Recurring 等。如果代码更开放,我会更高兴。我相信,他们的高端版本有可用的代码,但没有低版本。

But they made up for it with some good support. But I do like fullCalendar, but it is still not a full solution that was necessary for our product.

但他们通过一些良好的支持弥补了这一点。但我确实喜欢 fullCalendar,但它仍然不是我们产品所必需的完整解决方案。

But very good to see more development and competition

但是很高兴看到更多的发展和竞争

回答by Steve -Cutter- Blades

Maybe the E2CS calendar, built in ExtJs, would meet your needs.

也许E2CS 日历,内置在 ExtJs 中,可以满足您的需求。