Questions Tagged how-to
In TimeHeader how to add a new row ( column ) that describes the month, between the weeks and days row.
Hello, I am interested if anyone did something like this before: I am currently using a CellGroupBy="Week", so in the Header I have Weeks + Month and Days coresponding to it, but I would like to have...
Scheduler - HeightSpec.Parent100pct does not update layout when parent's height changes
Answered: You can use updateHeight() on the client side:
dps.updateHeight();
See also: * http://api.daypilot.org/daypilot-scheduler-updateheight/ This only works correctly in build 6.6.2339 an later (http:...
ContextMenu Postback 6.5 SP1
Hi. I downloaded the new 6.5 SP1 version and noticed that my postbacks on contextmenues stopped working. Do I have to make som new settings to get it working or am I missing something. I am using web...
How to span an event within business hours.
Answered: This should be implemented as an extra layer of logic. You should keep the main event data in the database separate from the visible chunks (shifts) that will be passed to DayPilot and displayed. Eac...
Cell.HasAppointment
Answered: yes. protected override void OnBeforeEventRender(BeforeEventRenderArgs e) { if (Boolean.Parse(e.Tag["CheckedIn"]) == true) [..]
DayPilot Scheduler - Is this possible?
Answered: If the lessons were always inside a CellGroupBy unit (e.g. an hour), you could use smaller units for time cells (e.g. CellDuration=15) and hide some of them: http://www.daypilot.org/scheduler-hiding-...
Scheduler setting up
Answered: I guess the problem is that the DataResourceField value doesn't match the Resource.Value. It must match exactly, i.e. the same case, no extra spaces, etc. See a general explanation for the Pro editio...
Retrieve an Event (Possibly Recurrent) given Date
Answered: Hi again, I'm not sure if this is the correct way of doing it as it seems like quite a bit of coding to get at the answer! I've probably missed something very obvious along the way but at least this ...
Menu image
Answered: It's now implemented in build 6.5.2331. See also: http://www.daypilot.org/daypilot-pro-6-5-sp1.html Just specify the image url using MenuItem.Image property. The image position can be adjusted using ...
Hide unused resource headers
Answered: There is no way to do this at this moment. I will check if it will be possible to include it in one of the future releases. It seems that it could be relatively easy to implement.
Creating reports with SQL and recurrent appointments?
Answered: The only option I can see is to try to create a .NET stored procedure and call the RecurrenceExpander from there. I haven't tried it, however.
How do i add an icon in the top left corner
Answered: The upper-left corner HTML can be set using BeforeResHeaderRender event: http://www.daypilot.org/scheduler-custom-resource-header-rendering.html
Click and drag whole event?
Answered: This is controlled by the EventMoveMargin property. You can increase the value as needed. The default value is 5 (pixels).
How to freeze the first column of the scheduler with the rowheader ?
Answered: Unfortunately, this is not possible in the Lite version. In the Pro version, the content is displayed inside a div with a scrollbars. The total width is set using Width property and the scrollbar is ...
Resource-Bubble for java scheduler
Answered: Erik, The resource bubble is now implemented in DayPilot Pro for Java. Example: Default.jsp
dps.resourceBubble = new DayPilot.Bubble();
DpsServlet.java
@Override
public void onResourceBubble(R...
MVC 3 - Tutorial
Answered: This is not a complete tutorial, just a hint on using DayPilot with Razor from MVC 3. A more complete tutorial can be found here: http://mvc.daypilot.org/monthly-calendar-and-sql-server-tutorial/ It'...
How to hide the Message Bar on Scheduler Control without clicking the X
Answered: You can call dps.hideMessage() using JavaScript. The message will be more configurable in one of the future releases. It will be possible to customize the appearance and timeout, both globally and in...
Remove the DEMO on Scheduler
Answered: Please make sure that you have updated both DayPilot.Web.Mvc.dll and all the scripts from the DayPilot directory (e.g. calendar.js, scheduler.js, months.js) with the ones from the full package: Binar...
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...