Questions Tagged how-to
How can i change the start date and end date dynamically by user selection
Answered: CommandCallback
How to change PerformDataBinding for changing the text displayed in text for Calendar?
Answered: You can use BeforeEventRender event to modify the event HTML as needed.
protected void DayPilotCalendar1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Calendar.BeforeEventRenderEventArgs ...
**Daypilot Month** set height some event
Answered: The event height in DayPilot Month can't be set individually. You can increase the event height using .eventHeight property (for all the events). Having custom height for individual events would prev...
How can i have 24 hour timeline on the Y-Axis and resource names on X-Axis
Answered: You will need to use the Calendar control switched to Resources mode: http://doc.daypilot.org/calendar/resources-view/ If you are going to display a lot of resources on the X axis of the calendar, yo...
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...