Skip to content

Questions Tagged javascript

  • 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.org/sc...
  • 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...
  • 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...
  • 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...
  • 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...
  • 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.
  • 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...
  • Scheduler timerange: why from 0 to 0 clock?

    Answered: DayPilot works with exact time points: The day begins at 00:00 and ends at 24:00 (i.e. 00:00 the following day). If you want to display the end date the way you describe you need to subtract one day ...