Questions Tagged javascript

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

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

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

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

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) => { 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...