search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Scheduler for MVC 5 demo

Asked by Harry
7 years ago.

Hi,

Does anyone know where the mvc 5 scheduler demo is located, have downloaded the general demo and I cant find it in there (specifically mvc 5 razor), any ideas?

Answer posted by Dan Letecky [DayPilot]
7 years ago.

The download package includes binaries for MVC3, MVC4 and MVC5. The demo that is included is configured to run with MVC4.

You can switch the demo to work with MVC5 (updating the references and web.config should be enough) or you can take a look at one of the MVC5 sample projects at http://code.daypilot.org:

https://code.daypilot.org/93978/asp.net-mvc-5-scheduler-with-recurring-events
https://code.daypilot.org/97360/asp-net-mvc-5-timesheet
https://code.daypilot.org/23167/scheduler-with-sortable-columns-asp-net-mvc-5

Comment posted by Harry
7 years ago.

Thats great, thanks, found another downloadable demo under the recurring events of mvc5.

Is it possible to combine the scheduler with mvc5 and javascript?

For example, I need to load in events from a database and obviously save events back to the same place, but I also want to be able to adjust the scale of the calendar dynamically, is this possible?

Comment posted by Dan Letecky [DayPilot]
7 years ago.

There are two options:

1. You can use DayPilot Pro for JavaScript and use MVC just for the backend implementation (REST/JSON endpoints). This way you can fully use the client-side API.

2. You can use DayPilot Pro for ASP.NET MVC and still use a large part of the client-side API but you can't mix server-side and client-side updates (e.g. the time headers are generated on the server-side). If you want full control on the client side I recommend using approach #1.

Comment posted by Harry
7 years ago.

Thanks very much,

I'm thinking ill take your advise and go with option 1, one more thing tho, can you edit the hours (and others) time frame? For example have 1 hour groupings, 2,4, 6 etc.?

Comment posted by Dan Letecky [DayPilot]
7 years ago.

There are certain predefined group sizes for the time header rows (see https://doc.daypilot.org/scheduler/time-header-groups/) buy you can customize the time header by inserting custom elements.

See the following tutorial:
https://code.daypilot.org/96228/tutorial-javascript-scheduler-time-header-customization

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.