search envelope-o feed check
Home Unanswered Active Tags New Question

Questions Tagged javascript

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

Custom Context Menu

Answered: You can handle onEventRightClick event and use it to open your own context menu: dp.onEventRightClick = function(args) { args.preventDefault(); var e = args.e; // DayPilot.Event object ...

Capture Drag Start

Answered: Hi Aliaa, Take a look at the following tutorial: https://code.daypilot.org/20663/html5-machine-production-job-scheduling-tutorial-php-mysql In "Creating a Follow-Up Job" section, it explains how to c...

How do you insert multiple different Gantt Charts in your website?

Answered: Just use two placeholder divs and create a DayPilot.Gantt instance for each of them: <div id="gantt1"></div> <div id="gantt2"></div> <script> var gantt1 = new DayPilot.Gantt("gantt1"); // con...

Error while re-populating the Daypilot weekly scheduler

Answered: This exception is part of the input data validation that was introduced recently. You should check if the events.list property holds correct items. It must be an array of objects which have the follo...

[dp.Locale] Can't get timeFormat value

Answered: Sorry, it's ok. I didn't use the constructor to create my dp2.locale variable .! > dp2.locale = new DayPilot.Locale(jsonObj.data.settings[0].cultureInfo); Still thanks for the time you spent reading ...

MVC to Jquery conversion for Daypilot Event Selection

Answered: The JavaScript config object would look like this: { eventClickHandling: "Select", onEventSelect: function(args) { OnEventClick(args.e); }, eventDoubleClickHandling: "Enabled" // it's dis...

No result, no data passing to stored procedure?

I am currently trying to implement the ASP.NET and Javascript DayPilot solutions with no luck. At the moment I am using a RecordSet to call from a SQL Database view, and this works. However, my onEve...

calendar resource view - possible to filter column ?

Answered: The latest DayPilot Pro version now supports column filtering API. See the following tutorial: https://code.daypilot.org/25430/javascript-resource-calendar-column-filtering You'll need version 2018.3...

Scheduler + Calendar break rowMoveHandling on Firefox

Hi, I think I have found a bug! If you have the Scheduler and the Calendar directives in the same page, it seems that the rowMoveHandling option stop to work for the Scheduler directive. This strange...

How to make an event style as selected on mouse click?

Answered: You can change the event background color using onEventClick event handler: dp.onEventClick = function(args) { var e = args.e; e.data.backColor = "blue"; dp.events.update(e); }; There i...

Drag drop users to the Daypilot calendar event

Hi, I want to drag and drop resource (i.e. User) to the event of daypilot calendar, Is there any way i can do it? I can see there is external drag and drop https://javascript.daypilot.org/demo/calend...

Daypilot Weekly Scheduler Event Box Size

Answered: You can control the behavior using useEventBoxes property: https://doc.daypilot.org/scheduler/exact-event-duration/ If you don't want the event boxes to be aligned with the grid use: dp.useEventBox...

Invalid cellGroupBy value

Answered: I was able to fix it using the online configurator as a guide, here is the modified js used: dp.scale = "CellDuration"; dp.cellDuration = 15; dp.timeHeaders = [ {groupBy: "Day", format: "dddd d MMMM ...

Reorder resources?

Answered: The drag and drop row moving (https://doc.daypilot.org/scheduler/row-moving/) allows moving one row at a time. It will move the selected row, including all children. You can also change the resources...

Move Resoources

Answered: You can also move a resource by modifying the "resources" array. Afer making the changes, call update() to refresh the Scheduler. This example sorts the rows alphabetically (by name): var dp = new ...

Question without answer for 11 months :/

Answered: Thanks for the update! It looks Ionic does some magic here and it swallows the event click until you click something else in the Scheduler. There is a workaround which is already available - just add...

Daypilot Modal (Mobile Safari Bug with Stretching)

There's an issue on mobile safari caused by it not returning the correct documentElement.clientHeight/Width. After testing some of the other ways to get the height of the modal I couldn't figure out ...

Can I make Joint Events move vertically across resources?

Answered: The behavior is controlled by multiMoveVerticalMode property. By default, it's set to "Disabled" which disables vertical moving. You can use "All" to enable vertical moving: dp.multiMoveVerticalMod...

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

All appointments shifted by 30 minutes

Hi, Somehow, all my appointments (and business starting hours) are shifted by 30 minutes (see attachment). What am I doing wrong/how can I fix it? Using: DayPilot Calendar, Version: 2018.1.228-lite I...

[?] How to change the Event Areas value from dps.contextMenu

Answered: If you have access to the DayPilot.Event object (e) you can change it like this: // e holds DayPilot.Event object e.data.areas = [{ html: "Confirmed", right: jsonTags.AreasRight, bottom: jsonTags....

Setting eventheight dynamicly makes cells too large when expanding group overlapping

Answered: I was grabbing the value from a dropdown and did not run it through parseInt. That solved the problem - sorry for the trouble :-)

[?] Update Event client-site

Answered: After read some sample code, I know how to do. Instead of `e.client.moveEnabled = false; ` , it should be ` e.data.moveDisabled = false;` and after that, use ` dp.events.update(e).queue();` to update

Calendar stops working

Answered: Do you see any error in the JavaScript console? Does the whole page freeze (do other element on the page work) or is it just that the Calendar doesn't respond to mouse actions? I know that it might b...

options to split hour

Answered: For the Calendar component (used in index.php and doctor.php) you can adjust the scale to show 15-minute cells using cellDuration property: var calendar= new DayPilot.Calendar("dp"); // ... calen...

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.

How to get all events by Resource

Answered: Ben, You can get a list of all events like this: var events = dp.rows.find("A").events.all(); And delete them: dp.rows.find("A").events.all().forEach(function(e) { dp.events.remove(e); })...

Reduce tree parent heights compared to children

Answered: The row height is derived from the event height (the total height is adjusted automatically to fit all events). You can specify custom event height for the parent rows using eventHeight property: htt...

Drag and select default (without holding shift key)

Answered: You can change the behavior using onGridMouseDown event handler: https://api.daypilot.org/daypilot-scheduler-ongridmousedown/ Example: dp.onGridMouseDown = function(args) { args.action = "Rectan...
Previous Questions 1411-1440 of 2119 Next