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

Questions Tagged javascript

End Date Incorrect - Too Long When Selecting, Too Short When Rendering

Answered: Since v7.9 (http://javascript.daypilot.org/daypilot-pro-for-javascript-7-9/) there is an option to treat the end date as date only: http://api.daypilot.org/daypilot-scheduler-eventendspec/ At this mo...

Prevent moving between resources

Answered: You should set .moveVDisabled property of the event to true: http://doc.daypilot.org/scheduler/limit-event-moving/ You can do it directly in event data object or using onBeforeEventRender event handl...

Message-Bar not disappearing completely

Answered: Daniel, I confirm the bug. It's fixed now in build 7.9.1312: http://javascript.daypilot.org/sandbox/ It can be tested in the JS console: dp.message("one"); setTimeout(function() {dp.message("two");...

scalehours in 30 minutes

Answered: In the Scheduler, you can use the following to get 30-minute time slots: dp.scale = "CellDuration"; dp.cellDuration = 30; See also: http://doc.daypilot.org/scheduler/scale/ http://doc.daypilot.o...

Ability to add images on the events

Answered: You can customize the event HTML using onBeforeEventRender event: Scheduler http://doc.daypilot.org/scheduler/event-customization/ Calendar http://doc.daypilot.org/calendar/event-customization/ Month...

Keep scroll bars always visible

Answered: The solution would be to let the scheduler fill the window/viewport so you can always reach the horizontal scrollbar at the bottom (without using the browser vertical scrollbar). Use heightSpec="Pare...

On event resize

Answered: There are two ways to do it: 1. Store the old event start and end in the args object in onEventResize (which is fired before the default action). The same object will be passed to onEventResized. The...

Row Selecting not working

Answered: It's fixed now in the latest sandbox build (7.9.1284): http://javascript.daypilot.org/sandbox/scheduler/rowselecting.html An official SP release will be available in a few days.

Can't load events from mysql

I'm setting up the calendar and I am having trouble switching from the sqlite database in the tutorial to my mysql database. I'm using the tutorial code created and populated a mysql databse using _d...

Uncaught The minimum year supported is 1

Answered: Problem solved. Was on event that fucked things up. had no date set.

Long event (multy day)

Good day, I use a DayPilot lite for Javascript, and when I create an event which will start in one week and end in another, calendar control is only render last part, but preserve a place in the firs...

Error in onScroll

Hi! I get this error: TypeError: ex.start is undefined on: $.post("backend_events.php", { start: start.toString(), end: end.toString() }, function(data) { args.events = data; args.loaded(); } ); DAni...

iPad time range selection

Hello all, When im testing my Javascript calendar, I am unable to drag, for example across 2 days, and make an event for those 2 days. I am only able to select 1 single day by pressing that day. Is t...

Uncaught TypeError: undefined is not a function error while initializing daypilot

Answered: http://geeksprogrammings.blogspot.com/2015/01/Uncaught-TypeError-undefined-is-not-a-function.html Fnally I found a solution to the error . this link provided me explanation of why and what of this er...

Local Time Client Calendar but UTC Server Side

(2014-09-02 08:42 UTC) Hello All, I am using the 'ASP.NET WebForms 7.8 SP2 (build 7.8.3169)' Calendar object. I have an issue with Local/UTC DateTime handling. I have been going though all (most?) fo...

Display Days on Time headers as clickable.

Hi, I am using the JavaScript Scheduler to build an appointment calendar application. I have two modes for the app, namely Day and Month view. I want to achieve the following : Whenever the user in t...

Deadly Memory Leak Problem

I have 5 resource and 48 events. I refresh my event every 5 seconds via websocket. When my page start , memory is 50 MB after 5 min. After half hour memory is 1 GB. 1-)How Am I gonna solve that memor...

How do I set the timezone for the scheduler/calendar ?

I have a date that start at 10 and ends at 12. But the scheduler puts it between 8 and 10. I live in Sweden so my timezone is +1 plus summer time so in total +2. How can I make the scheduler/calendar...

Problem moving events

Good Morning, I'm initializing a scheduler javascript. I have a problem when I move the data. I was trying to create a method that would allow me to avoid overlap of events. Through a Request Daypilo...

Why does calendar add event at wrong time when using BusinessHoursNoScroll

Something seems weird when switching between businesshoursnoscroll and businesshours. The time of the event is incorrect. Here is a fiddle: http://jsfiddle.net/Viktor/uf6x4hdn/1/ Side note: It would ...

Separator / Actual Time in CALENDAR control

Answered: The separators are not implemented for the calendar control but you can highlight the current cell using onBeforeCellRender event handler. You can find a new example here: http://doc.daypilot.org/cal...

Moving problem

hi, I love daypilot, really good and easy to understand. But I'm stuck. When I want to move an event to another day or another resource. The event is in two days. But when I move the event to another...

Deleting Event - Scheduler Pro, Using active area delete icon

Answered: Found the issue, per a recommendation from Dan- When using eventDeleteHandling = Update, the active area is automatically created and BeforeEventRender is not necessary. In my case, it was prohibitin...

heightSpec="Auto" not working properly

Answered: Hi Dave, Please write to support@daypilot.org and you can get the full version of the latest build by email.

onBeforeTimeHeaderRender is being run for every event when using gantt

Answered: The answer is related to you side question: "How do I add events in the fastest way ?" The fastest way is to use .events.list and .update(): dps.events.list = [{...}, {...}]; dps.update(); The ....

When switching between gantt and resources view the resource-column-width is not updated

Answered: The row header width auto-fit feature works like this: 1. It will extend the width beyond the initial width if needed. It starts from rowHeaderWidth - the new width is never smaller. 2. It stores the...

heightSpec="Auto" doesnt grow automatically

Answered: Version 7.8.932 fixes this problem: http://javascript.daypilot.org/sandbox/ See your example: http://jsfiddle.net/LsrvZ/1/

If date is 15:30, getHours() will return 16.

Answered: I'm an idiot. Forget about this.

Styling the rows....??

Answered: To set the color of the cells use onBeforeCellRender: http://doc.daypilot.org/scheduler/cell-customization/ and to set the color of the row headers use onBeforeResHeaderRender: http://doc.daypilot.or...

hided children opened automatically?!

Answered: The AutoRefresh event handler doesn't do anything by itself in the JavaScript version. If you are using the MVC version than make sure that you don't reload the Resources list on the server side duri...
Previous Questions 2071-2100 of 2161 Next