Questions Tagged how-to
cancel an onEventMoved or onEventResized
Answered: Found the answer: hope this helps other people save some time //This gets called when the user drops the event dp.onEventMove = function (args) { //args.e is the event object that is being moved //ar...
Navigation
Answered: You can switch dates using .commandCallBack() method: MVC View
<div class="note">
<a href="javascript:dp.commandCallBack('previous');">Previous</a> |
<a href="javascript:dp.commandCallBac...
month navigator - update to current date from next/previous link button
Answered: You can use .select() method of the navigator object on the client side: http://api.daypilot.org/daypilot-navigator-select/
Year View
Answered: Yes, there is a plan to add a year view based on the scheduler (http://doc.daypilot.org/scheduler). It will look like the timesheet mode (http://doc.daypilot.org/scheduler/timesheet/) but there will ...
Daypilot Scheduler Lite
Answered: You can try 1. to remove [assembly: AllowPartiallyTrustedCallers] from DayPilot/Source/Properties/Assembly.cs (and recompile DayPilot) or 2. to add [assembly: AllowPartiallyTrustedCallers] to your dl...
Minimize sources
Answered: It is minimized using ESC (ECMA Script Cruncher). You can find the instructions here: http://www.daypilot.org/how-to-compile-daypilot-pro-source.html The ESC download page is no longer available but ...
Change Calendar Gridline Color and Width
Answered: I've posted a short tutorial that demonstrates how to modify the CSS theme for the timetable tutorial: http://code.daypilot.org/39902/asp-net-timetable-with-custom-css-theme Instead of the _matrix cl...
Calendar for different users? (Users can only view/edit their own events)
Answered: This has to be done on several levels: 1. You can use the authentication system you already have in place to identify the current user. 2. Let's simplify the authorization rules (ACL) to general "rol...
How to call javaScript method from CallBack DayPilotCalendar1_EventClick
Answered: It depends on what you actually want to do (and it looks like #1 is what you are looking for): 1. If you only want to call a client-side method, use EventClickHandling="JavaScript" and specify your j...
Scheduler Gantt View Multiple Dates per Row
Answered: What you describe is basically the default "Resources" mode: http://doc.daypilot.org/scheduler/resources/ You need separate database tables for "Tasks" and "Actions". Task = has a name, displayed in ...
How to be locked some of the events from the database : Javascript
Answered: You can use 'moveDisabled' property:
var e = new DayPilot.Event({
start:new DayPilot.Date(),
end:(new DayPilot.Date()).addHours(5),
id: DayPilot.guid(),
text: "New Event",
resour...
Show Bubble or Tooltips on empty cell
Answered: This is not supported at the moment but it's a good idea for one of the future releases.
All Day Events in Month View
How do you implement 'all-day' events in the month view. If the client wants to show the event start time it is still showing for events that have a start and end time of 00:00:00. What is the correc...
How to move/scroll (horizontally) using drag in scheduler
Answered: This behavior is only supported on touch devices. Dragging in the grid will scroll the area. In order to start selecting a time range you need to hold the finger for a while.
How to listen or get the key event in scheduler e.g. delete key
Answered: The Scheduler doesn't contain any element that can get focus. You can detect the Delete key for the whole page using the following code:
<script type="text/javascript">
$(document).keyup(function ...
Bubble
Answered: You probably mean the ToolTip (based on HTML title attribute). You can disable it using ShowToolTip property: http://doc.daypilot.org/month/event-bubble/
Integrated message bar add style
Hi all, I want to change the message bar his style depending of its type (error or warning). Now I tried : function afterRender(data) { if (data != null) { dps1.message(data.message, 5000, "#dc143c" ...
Scheduler month header should always be visible
Answered: This is not yet implemented but it's under development. It should become available in one of the future releases.
How to partially disable an event?
Hi, this is my first post. I want to disable partially disable scheduler event. e.g Event slot is from 00:00 to 23:30 I want to disable this event from 00:00 to 02:00 Regards, Muhammad Kamran Jr. Sof...
תצוגת לוח שנה מתוזמן
Answered: This is the English version as translated by Google: "Is it possible to change the day view calendar will be scheduled so that, for hours and across the rooms?" This translation is not perfect so thi...
Show Week End in DayPilot Scheduler
it is possible to show only business hours and Saturday/sunday in the DayPilot Scheduler ?
Scheduler: differrent views
it is possible to set different views for scheduler using, for example, the calendars to select daily, weekly or monthly as is the case in simple calendar?
Multiple DayPilotCalendar on single ASP form
Hi All, I have created a user control for Daypilotcalendar, now in .aspx page i have added single DayPilotnavigator. Now from database i read multiple users and create calendar from user control in s...
event for multiple days not correct on scheduler
I am trying to get an event on scheduler to span multiple days. The start and end date are 3 days apart but scheduler only shows the event on the first day (my scheduler groups by day & hour) but wit...
Calendar: CssClass for the event. how to in lite version?
Hello, I see in the last Lite 4.0.261 release for the Calendar version I can use CSS themes but I can't find how to customize the background color for single events on the calendar. I should use in B...
Month header for Scheduler
Hi, According to this overview, it should be possible to have week, month or year headers in the lite edition of the Schedular: http://www.daypilot.org/compare-versions.html But how? Thank you for ta...
Resolve resource id to resource name on rangeselected
Answered: Nvm... Answer is here: http://forums.daypilot.org/Topic.aspx/921/scheduler_resource_name_and_id That is - find the resource via dps.resources.
Display Calendar Verical
Hi, Is it possible to have the display of the calendar reversered? I want to be able to switch from default view which is the dates at the top and resources on the left. But I would also like to be r...
How do I change "resource-hover-color" ?
Answered: You can use crosshairColor and crosshairOpacity properties. The defaults:
.crosshairColor = 'Gray';
.crosshairOpacity = 20;