Questions Tagged how-to

How to get response to a radio form

Answered: In this case, modal.result holds a copy of the data object. Its properties are set according to the user selection. So, in order to get the radio selection, you need to read modal.result.resource . T...

Selecting Multiple Rows Header On Row Click

Answered: You can add the row to selection in onRowClicked using the rows.selection.add() method. It is also possible to implement a “toggle” logic using rows.selection.isSelected() and rows.selection.remove()...

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 ...

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...

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...

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...

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...

DayPilot Month - RTL

Answered: It was almost ready - the RTL support is now available in the latest sandbox build (2024.3.5979). You can get the sandbox React package at npm.daypilot.org . See also a live demo in the sandbox: Mont...

Split the reservation on multiple resources

Answered: In this tutorial, you can learn how to split an event using a context menu: JavaScript Scheduler: Splitting an Event You can then join these two new events using a link and possibly style them to ind...

How to add "day of week" to the time header day

Answered: You can customize the calendar column headers using the onBeforeHeaderRender event handler: const calendar = new DayPilot.Calendar("calendar", { // ... headerHeight: 50, onBeforeHeaderRender: args =>...

Calendar events are not aligned when on the same line

Answered: It looks like this is caused by the custom CSS theme that you are using. I recommend checking the margins, padding, etc. If the purpose of the CSS modification was to create a free space next to the ...

Adding Holidays on for ASP.NET tutorial

Answered: In ASP.NET WebForms , you can indeed use the BeforeCellRender event. You just need to check whether the current cell falls on one of the defined holidays. Example: // Define an array of holidays priv...