Active Questions
How can we get height of the event
Hi, I want to implement functionality that, In the events i am adding the users by adding active areas, But if suppose it goes beyond the height of actual event height then i need to show more info i...
Change Back Color on Event Move
Answered: Most likely, the problem is that you are using EventMoveHandling="Notify". When using the Notify event handling mode the events are not reloaded from the server side unless you call DayPilotScheduler...
dynamically set background
Answered: You can also change the background color of the grid cells, the mechanism is the same. Just use BeforeCellRender event handler:
protected void DayPilotScheduler1_BeforeCellRender(object sender, Day...
How to remove default mousedown event on calendar events? - II
Answered: Thanks for the update. In that case you can use onAfterEventRender to remove the mousedown event handler. It's defined using onmousedown property so you can simply set it to null:
onAfterEventRende...
How to remove default mousedown event on calendar events?
Answered: It's not possible to remove event handlers from the event div. However, you can handle onAfterEventRender event to get access to the event div and customize it. The event consists of two main <div> e...
How To Print Scheduler With Angular 4+
Answered: There are two options: 1. You can print the exported image (SVG format works best because it's scalable). This command exports the Scheduler as SVG and open the browser print image:
this.scheduler....
Is there any setting for showing More events red icon
Answered: You can enable the indicators using "scrollLabelsVisible" property:
config: any = {
scrollLabelsVisible: true
}
See also: https://doc.daypilot.org/calendar/scroll-labels/
scheduler overlaps anything else i try and add to the web page.
Answered: It looks like you might have placed the Scheduler in an absolutely-positioned element that is displayed as a top layer. The Scheduler also supports a special mode where it fills the available space: ...
Text on duration bar
Answered: 1. You need to increase the height of the duration bar. The height is defined using CSS and you need to override the default style. It's defined using two elements, .scheduler_default_bar and .schedu...
Business hours and minutes
Answered: 1. You can define the "business" status for each cell using onBeforeCellRender event handler: https://doc.daypilot.org/scheduler/cell-customization/ This affects the cell appearance (.scheduler_defau...
Daypilot Angular 2 : ERROR : DayPilot.Scheduler: The placeholder element not found: 'dp_1527237171484105172'.
Answered: The Scheduler requires that the component is actually rendered during initialization. It creates a placeholder with ID starting with "dp_" which needs to be present. It looks like the accordion doesn...
Custom data for Resources
Answered: The MVC version is designed to customize the rows on the server side (using DataItem and OnBeforeResHeaderRender) and at this moment there is no way to pass custom data to the client side.
Cannot use DayPilot.Angular.Modal
Answered: The modal dialog tutorial was created some time ago - the DayPilot.Angular namespace has been deprecated meanwhile. An updated version of the tutorial is now available (it uses Angular 6 and DayPilot...
Event text is overlapping with added active areas
Answered: There are two ways to fix that: 1. Apply additional padding to the inner event div ("scheduler_default_event_inner" CSS class in the Scheduler) to prevent overlapping with the active area. 2. Set the...
Display Resources on a time range
Answered: If you are switching the date using an .update() call you can simply update the resources array (https://api.daypilot.org/daypilot-scheduler-resources/) at the same time. It might be also possible to...
Overlay to indicate days has past
Answered: One option is to add custom CSS (using cell.cssClass) and create styles for all different combinations of classes (they are all applied at the same level): .scheduler_default_cell, .scheduler_default...
When collapse tree, it occurs unspecified error
Answered: This bug should be fixed now in the latest sandbox build (2018.2.3291): https://javascript.daypilot.org/sandbox/ Please let me know if the problem persists.
Getting error Uncaught TypeError: Cannot read property 'id' of undefined
Hi, I am using daypilot-calendar control and daypilot-month control, In my application i added Week and Month view, so based on selection i hide other and show that component, Its working fine, But r...
Database
Answered: Javascript can't connect directly to a database, but it can request data from external pages, files. I use PHP, and a MS SQL database. I have created an API were I can request data for my scheduler, ...
Dose DayPilot Scheduler Pro support Undo & Redo ?
Answered: There is now a new tutorial available that shows how to implement undo/redo for the JavaScript Scheduler component: https://code.daypilot.org/33599/javascript-scheduler-undo-redo