Questions Tagged how-to
ContextMenu - confirmdelete
Answered: It should look like this:
dps.contextMenu = new DayPilot.Menu([
{ text:"Delete",
onclick: function() {
if(confirm('Are you sure?')){
dps.eventMenu...
Scheduler - When does the day end?
Answered: It's now fixed in build 1.0.187. See also: http://java.daypilot.org/daypilot-pro-for-java-1-2/ Thanks for reporting the bug!
Change FreeTime Tile Color when clicked
First of all, thanks for sharing and providing this wonderful control.. my problem is i don't know how to change the freetime tile/cell whenever it is clicked.. could someone tell me thanks in advanc...
DayPilotNavigator don't show recurrence events
Answered: Unfortunately, it's not implemented yet. It's on the wishlist with a hight priority. However, I'm not sure if it will be available in the 6.5 release (http://www.daypilot.org/daypilot-pro-6-5.html).
Change UseEventBoxes in code
Answered: You can change the value anytime but you need to force a full client-side reload using Update(): DayPilotScheduler1.Update(CallBackUpdateType.Full);
problems with the new recurrence mechanism
Answered: Scheduling applications might get complex easily and I won't pretend DayPilot has a prebuilt solution for all the cases. One of the first things you may need to do is to switch from a simple one-tabl...
Display 15 30 45 minutes
Answered: I see. You can do this using BeforeTimeHeaderRender event handler: http://kb.daypilot.org/75335/how-to-show-precise-time-in-the-calendar-row-headers/
Using quarters or months for CellDuration rather than days, hours, or mins etc.
Answered: In the Calendar, the maximum CellDuration is 60 (minutes). In the Scheduler, you can set it to whatever you want but it will be the same for all cells. That means it will not be practical for months ...
Scheduler - cell mouseover resource and time headers shaded with custom color
Answered: You can use CrosshairColor and CrosshairOpacity properties.
How to show 22PM to 7AM as businesshours within a calender?
Answered: You can override IsBusiness status using BeforeCellRender event handler. This event is called for each calendar cell. You need to check the e.Start value and set e.IsBusiness as needed. See also: htt...
Reccurence problem in week view
Answered: The recurrence is designed this way. The first event is always fixed and the following occurrences are generated using the rule. You can update the start date of this first event to match the rule (i...
Reccurence problem in month view
Answered: You should move the first event so it matches the rule, please see also here: http://forums.daypilot.org/Topic.aspx/1376/reccurence-problem-in-week-view
Reccurence view
Answered: The first event is not considered a part of the series. That's why it can have any start and it's not counted towards the limit when Times() rule is used. See also: http://forums.daypilot.org/Topic.a...
Event Bubble render client side
Answered: It's possible to set the bubble HTML in advance so it isn't loaded from the server using BeforeEventRender event handler (use e.StaticBubbleHTML property).
protected void DayPilotMonth1_BeforeE...
Problem with DayPilotCalendar hosting on server
Answered: I suggest taking a look at the page HTML source. There is a JavaScript block that initialized DayPilotCalendar. It looks like this:
<script type='text/javascript'>
/* DayPilotPro: 6.5.2299.0 */
f...
Getting Start Time and End Time in Day / Week View
Answered: You might want to take a look here: http://www.daypilot.org/scheduler-time-range-selecting.html This article is about the Scheduler control but the other controls work the same way. Here is a KB tuto...
Order of display for events in Scheduler Resource Mode
Answered: You can user EventSortExpression property to specify order of overlapping events. See also here: http://www.daypilot.org/daypilot-pro-6-2-sp3.html
How add images to eventboxes
Answered: Harshad, Not sure if this is exactly what you're looking for, but you can do something like this in _BeforeEventRender: e.InnerHTML = "<img src='img.png' onclick='alert(this)' />" + e.Tag["evt_nm"];
Testing and message for attempt to create new event before current time and date
Answered: It depends on how you are creating a new event. If it's directly on TimeRangeSelected it could look like this:
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="check(start, end,...
how to change the colour of e.DurationBarColor
Answered: You need to add this: DataTagFields="color" and handle BeforeEventRender event:
protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
e...
event resize javascript scheduler
Answered: Please see the following documentation pages: http://www.daypilot.org/calendar-event-resizing.html http://www.daypilot.org/calendar-event-moving.html Look for JavaScript Handling section. In short, y...
DayPilot Scheduler Focus On a Date
Answered: You can use the following method:
DayPilotScheduler1.SetScrollX(new DateTime(2011, 7, 15));
Change mouse icon to hand on mouse over of monthview
Answered: At this moment it's hardcoded. You would need to change it in the source code.
Setting DataTextField to an object's property which is string array
Answered: You will probably have to change the structure of your data source. DayPilot converts the value of the specified field to string using Convert.ToString() call. The other option is to change it in the...
DayPilot Calendar for MVC
Answered: The latest sandbox build now contains a demo page that shows a hierarchy of resources: http://mvc.daypilot.org/sandbox/Calendar/DaysResources The sources is a modified Calendar/Index example. 1. The ...
How to get the previous and next linkbuttons
Answered: There are no built-in buttons at this moment, but it's easy to add them. See an example from Scheduler/Default.aspx:
<a href="javascript:dps1.commandCallBack('previous');">◄</a>
<a href="ja...
Level in header
Answered: Hi Eneko The second level that you say, is for the alldaysevent property, if you put this to "false" it's disappears Regards