Questions Tagged javascript

Conditional drags crashes scheduler

Answered: There are a couple of issues with this example: 1. If you set args.async = true, you must call args.loaded() in every code path. Otherwise the dragging operation will remain active. The first "if" bl...

Need supported version

Answered: DayPilot Pro for ASP.NET WebForms version 8.0.3413 is from 2015 and it is not supported anymore.

Scheduler Event Overlap per Resource

Answered: This is a global setting but you can implement custom rules using the real-time drag and drop events: https://api.daypilot.org/daypilot-scheduler-oneventmoving/ https://api.daypilot.org/daypilot-sche...

Columns for groups not working

Answered: The Scheduler component introduced a new configuration property (rowHeaderColumnsMergeParents) and the Gantt chart inherited the default value: https://api.daypilot.org/daypilot-scheduler-rowheaderco...

Customize time blocks on Weekly Calendar

Answered: At this moment, the Calendar component uses fixed time blocks but it is possible to use a workaround and map the block number to the hour/minute part of the start/end time. This approach is used in t...

Search task in Gantt Chart View.

Answered: Task filtering is now available in the latest sandbox build (since version 2022.4.5449): https://doc.daypilot.org/gantt/row-filtering/

Can't Write Input Using DayPilot.Modal.prompt

Answered: It depends on what "will not work" means - the field is read-only, can't be focused, you can't type in the field, the new value is not available in modal.result? I recommend inspecting the <input> el...

View again current month

Answered: For this, you need to create one more button 'Today Button' and create one function for the today button and write your logic on this. todayDate() { this.configMonth.startDate = DayPilot.Date.today()...

Performance issue

Answered: Thanks for the update. To detect that a row has been rendered, you can use onBeforeRowHeaderRender event: https://api.daypilot.org/daypilot-scheduler-onbeforerowheaderrender/ You can also increase th...

How can I improve data load in vue js

Answered: All main components (Calendar, Month, Scheduler) provide visibleStart() and visibleEnd() methods that you can use to get the start and end of the current date segment (calculated from startDate/days)...

Event Text Font size

Answered: When using the default theme, the Scheduler events are marked with "scheduler_default_event" CSS class (the outer div) and "scheduler_default_event_inner" (the inner div): .scheduler_default_event_in...

how to apply css (font-weight) for cell?

Answered: The Scheduler cells are marked with "scheduler_default_cell" CSS class (when using the default theme): .scheduler_default_cell { font-weight: bold; } See also: https://doc.daypilot.org/scheduler/css-...

Trigger collapseAll and expandAll on clicking header

Answered: You can add the icon using an active area which lets you specify an onClick handler. Active areas are supported in time headers, row headers, events, and cells. Here you can find an example of a row ...

I need to add an event listener on collapse name.

Answered: Adding event listeners to Scheduler elements using global selectors is not a supported scenario. The Scheduler needs to update individual elements as needed. Instead, use the provided render event ha...

minCellHeight seems not work

Answered: In the monthly calendar, it's necessary to use cellHeight : https://api.daypilot.org/daypilot-month-cellheight/

onBeforeCellRender loading after trigger click

Answered: At this moment, the React Scheduler will always update on state changes. This is a design decision and the alternative would be to perform a deep comparison of the current/previous props. The props c...

Calendar Month in viewtype=week

Answered: Thanks for the update. It should be fixed now in the latest sandbox build (2022.3.5440): https://release.daypilot.org/changes/js/ Please let me know if the problem persists.

How to prevent event move

Answered: You can use onEventMoving event handler to customize the Scheduler drag and drop event moving in real time: https://doc.daypilot.org/scheduler/event-moving-customization/

How to use pro DayPilot in vue js

Answered: There turned out to be a problem with Vue 2.7. It should be fixed now in the latest sandbox build (2022.3.5436): https://release.daypilot.org/changes/js/ Please let me know if the problem persists.

Custom Event Form

Answered: Yes - one of the options is to use the built-in modal dialog which supports creation of custom forms: https://modal.daypilot.org/ You can also use a third-party form that you open using onEventClick ...