Questions Tagged javascript
highlighting current time indicator for DayPilotCalendar?
Answered: At this moment, the Current Time Highlighting feature is only available in the Pro version of the Calendar. You can find information about feature availability in the table at the bottom of each docs...
DayPilotMonth fit parent height
Answered: At this moment, the 100% Height feature is only available in the Pro version of the Monthly calendar. You can find information about feature availability in the table at the bottom of each docs page....
On windows resize, Cell Loses selection. [Calendar]
Answered: Your config contains dynamic values that depend on the window width (columnWidth). Changing the config invokes a Calendar update. At this moment, the Calendar is designed to clear the current time ra...
CSS classes of start and end indicator of event resizing
Answered: The CSS classes are as follows: .scheduler_default_event_move_left
.scheduler_default_event_move_right See also the full list of CSS classes used by the Scheduler.
How to export Gantt chart for range opttion
Answered: The exportAs() method returns a DayPilot.Export which you can use to get the exported object, start a download, etc. To download the image immediately, you can use this: this.dp.exportAs(this.state.e...
DayPilot.Area action = "JavaScript" is marked as Legacy, what now?
Answered: The js string property is no longer supported in the JavaScript version because it requires eval(), which many frameworks and code analyzers mark as insecure. I recommend adding the active areas usin...
I need to group the timings to show from time and to time, instead of hours.
Answered: If you just want to change the content of the time header, you can use the onBeforeTimeHeaderRender event handler to customize it in the Pro version of the Calendar. To define custom time slots, it i...
How to create slots with 2 or 3 hours and display them as single column?
Answered: In the Scheduler, you can create your own timeline by defining individual time slots. You can set custom start and end times for each slot, as long as they do not overlap with other slots.
Year View (version 2024.3.6130)
Answered: Hi Kym, Sorry for the delay! This issue is now fixed in the latest sandbox build (2024.3.6136). With this build, you can specify the end for each row/month, and it will disable the subsequent cells: ...
keyboard.clearFocus() not found
Answered: It was missing from the TypeScript definitions. It si now available in the latest release (2024.3.6130).
Error when using .Scheduler.rows.find with split resources
Answered: This error is fixed now a special relase (2024.3.6130). If there is any problem, please let me know.
Scheduler partial updates sometimes are not rendered
Answered: It looks like you invoke the add/remove/update operations during drag and drop moving - but that’s not a supported scenario. It wasn’t designed to support them - it may work or not. The problem is th...
Changing Background Color of Selected Row Header (Scheduler)
Answered: In the Scheduler, the selected rows are highlighted using the following CSS defined in the built-in theme: .scheduler_default_rowheader.scheduler_default_rowheader_selected {
background-color: #...
How can I show a bubble manually on a resource/row header?
Answered: You can use the showHtml() method - you just need to supply the HTML to be displayed. No other object is required as a parameter.
Bug on Row Filtering Demo (JavaScript Scheduler)
Answered: This problem should be fixed now in the latest sandbox build (2024.3.6102). Please let me know if the problem persists.
Enabling Multi-range by default
Answered: In the latest sandbox build (2024.3.6166), this is now possible using the new multiRangeMode property. Scheduler config: {
multiRangeMode: "Always",
// ...
}
Set Height For Frozen Rows in the Scheduler
Answered: The JavaScript Scheduler doesn’t support frozen rows with a custom height and a vertical scrollbar. If you want to display large data set or many rows in the frozen section, it is better to use two s...
time range from touch selection not working?
Answered: I have one test case where it works fine and one where it doesn’t. I’m still trying to find out what’s going on. Anyway, the following approach works in both setups: dp.onTimeRangeSelected = function...
Scheduler - Area - How to use Bubble with the action ContextMenu
Answered: Since version 2024.2.5957, it is possible to combine the bubble property with any action type. That means the bubble (if specified) will always be displayed on hover, even for action: "ContextMenu".
utiliser le local storage
Answered: Yes, this example focused on the configuration of the React calendar on the client side (installation, changing the date, customizing appearance, …). In a standard application, you will need to conne...
Unset keyboard focus on lost focus on scheduler component
Answered: In the latest sandbox build (2024.3.6000), there is now a new keyboard.clearFocus() method that will let you remove the focus. Please let me know if it doesn’t work as expected.
Can you add an empty column in the row header?
Answered: To show an empty column, just omit the display property from the rowHeaderColumns array items. However, the first column will display the name of the resource even if you don’t specify the display pr...
Partial resource updates without full redraw
Answered: Yes, you can update just a single row using the rows.update() method.
When dragging events, sometimes the event incorrectly moves to the wrong time
Answered: This issue should be fixed now in the latest sandbox build (2024.3.5995). Please let me know if the problem persists.
Wrong className for DayPilotMonth component
Answered: You may be overlooking something. The DayPilotMonth React component indeed uses the ”month_default” CSS theme. You can check it by inspecting the DOM elements in the JavaScript demo, You can apply a ...
Add additional data to the events table
Answered: You can create the modal dialog using DayPilot.Modal.form() - you can find an example here: JavaScript Scheduler: How to Edit Multiple Fields using a Modal Dialog DayPilot.Modal is included in the op...
dropdown in progress bar
Answered: You can add custom objects (icons, etc.) to the row header columns using active areas. To add an active area, use the onBeforeRowHeaderRender event handler: onBeforeRowHeaderRender = (args) => {
...
Collapsing/hiding hours in calendar
Answered: This is not supported in the Calendar at the moment. It is only possible in DayPilot Pro, in the Scheduler component: Hiding Time Columns in JavaScript Scheduler In the Pro version of the Calendar, y...
Is it possible to drag and drop multiple events from the external source to scheduler?
Answered: Unfortunately, this is not possible at the moment. Out of curiosity - what is your use case?
Daypilot navigator problem after updating to angular 16
Answered: This is hard to guess without the actual code, but you may be accessing an instance that has been destroyed already. If it doesn’t help, could you please post an example that reproduces the problem?