Questions Tagged mvc
Bubble
Answered: You probably mean the ToolTip (based on HTML title attribute). You can disable it using ShowToolTip property: http://doc.daypilot.org/month/event-bubble/
Scheduler month header should always be visible
Answered: This is not yet implemented but it's under development. It should become available in one of the future releases.
Align cells with offset
Hello, I am developing a booking system where it is useful to see when during the day the booking begins. Most bookings are for the night, so if the booking looks to be during one day it is misleadin...
mvc 5
Answered: Yes, this happens if you use DayPilot binaries compiled with ASP.NET MVC 4 in a project that uses ASP.NET MVC 5. Releases 7.7 SP1 and later include binaries compiled with ASP.NET MVC 5. http://mvc.da...
Resolve resource id to resource name on rangeselected
Answered: Nvm... Answer is here: http://forums.daypilot.org/Topic.aspx/921/scheduler_resource_name_and_id That is - find the resource via dps.resources.
Cannot read property 'end' of null
I have a booking system that uses daypilot scheduler. One of the bookings is really really long, and starts before the startdate of the calendar. When trying to resize that event we get an error: Can...
MVC 5 support
Answered: The 7.7 SP1 release includes binaries for ASP.NET MVC 5 as well: http://mvc.daypilot.org/daypilot-pro-for-asp-net-mvc-7-7-sp1/
Event Creation in dayPilot Pro
Hello Everybody, I am trying to create events in DayPilot Pro Demo but I am not able to create that as I can in "DayPilotLite". In DayPilotLite we can go to a new page when we click on TimeCell We ar...
How to send custom data to backend
Answered: Hi Isaac, You should be able to pass custom data to the server using .clientState property: http://doc.daypilot.org/calendar/clientstate/ ClientState is persisted until the page is refreshed and it i...
Grouping Support
Answered: > Layer Multiple events: Group calendar view for multiple resources. Two options are available: 1. Resources in columns (Calendar control) http://mvc.daypilot.org/demo/Calendar/Resources 2. Resources...
Use jQuery datePicker to select the date
Answered: As soon as you know the selected date, you should send it to the server using commandCallBack() method in order to change the date and load the new event set. See ASP.NET MVC/Example 1 here: http://d...
How to show Event Calendar from jquery
Answered: Please see the doc for jQuery calendar plugin: http://doc.daypilot.org/calendar/jquery/ Your example would look like this:
<link type="text/css" rel="stylesheet" href="themes/calendar_white.css" />...
Show diferent intervals between one hour to another
Answered: You can use TimeHeaderCellDuration property to customize the time header cell size (Calendar): http://doc.daypilot.org/calendar/time-header-cell-duration/ OnBeforeTimeHeaderRender method can be used ...
Highlight Events in Navigator
Answered: The documentation page is now updated with a MVC howto: http://doc.daypilot.org/navigator/highlighting-busy-days/ You need DayPilot Pro for ASP.NET MVC 7.3 or higher.
trying to remove a resource row removes incorrect resource cells
Hi Dan, I have added a functionality to remove a resource from the scheduler control by clicking on an icon in the resource header. How I accomplish this is by iterating over dps.resources array to f...
AfterRenderJavaScript missing in MVC
Answered: It's now available in the latest sandbox build (7.5.5595): http://mvc.daypilot.org/sandbox/ It will be included in the next release.
Some handler or method to run after cell rendering on scroll
Answered: There is a new cell-accessing API in the works which you can use. It is available in the latest MVC sandbox build (7.5.5597): http://mvc.daypilot.org/sandbox/Scheduler/ You can use the following API:...
In Internet Explorer, the vertically adjacent events don't have the horizontal separation line
I am assigning custom css classes to the daypilot events based on some custom condition in the OnBeforeEventRender method. The result looks good in Chrome, but in IE, sometimes if there are two verti...
Fixed-width events
Is it possible to display a day-view with fixed width events - i.e. that don't resize to the whole day width?
JavaScript error when right-clicking on a cell in the scheduler control when there are no context menu items defined
I am using the DayPilotMenu control and the DayPilotScheduler in tandem in an ASP.NET MVC application. The DayPilotMenu control displays a context menu when the user clicks in one of the cells of the...
Adjusting the event starting position in the scheduler
Answered: You can configure this behavior using UseEventBoxes property. UseEventBoxes = UseEventBoxesType.Never will do exactly what you need.
Is there a way to await an event (commandCallBack)?
Answered: You can use AfterRender client-side handler (AfterRenderJavaScript property in MVC DayPilotSchedulerConfig). This script will get called after every update (including the initial rendering). You can ...
empty Json
I followed this tut to make navigation in calendar using scheduler code.daypilot.org/33944/event-calendar-day-week-month-for-asp-net-mvc I have done all exactly the same when I click on calendar on O...
Time format in the time header resets to 24hour after update() call
I'm using the mvc scheduler, and displaying only single day. For the time header display, I'm doing the following to get the 12 hours format (AM/PM), and also setting TimeFormat = TimeFormat.Clock12H...
Culture/Localization support for DayPilot MVC scheduler
Answered: At this moment it uses the culture of the current thread. I.e. you can set it globally in web.config:
<configuration>
<system.web>
<globalization culture="en-US"/>
</system.web>
...
Is it possible that the daypilot emitted javascript executes after page load?
Answered: You can initialize it using the JavaScript API directly instead of calling the @Html.DayPilotScheduler() helper. Example:
function initScheduler() {
var dps = new DayPilot.Scheduler('dpScheduler...
CssClass property of BeforeCellRenderArgs doesn't work in some condition
Answered: This is a bug of the optimized rendering mode (all identical cells in a column are rendered as a single div). This is already fixed in the ASP.NET WebForms version and it will be fixed in the MVC ver...
How to update Scheduler data using ajax/javascript?
Answered: You can use the client-side API to modify the .resources array: http://api.daypilot.org/daypilot-scheduler-resources/ Then call .update() to refresh the scheduler: http://api.daypilot.org/daypilot-sc...
Daypilot Scheduler
Answered: You should set .StartDate (the first visible day) and .Days (number of days) to match your event set. SetScrollX() will set the scroll position but it has to be within this range.
Custom context menu when right-clicking on empty space in Scheduler
I am using Daypilot for ASP.NET MVC, specifically the Scheduler. I set the ContextMenuSelection property of the Scheduler to show a context menu when a user right-clicks on an empty space in the sche...