Questions Tagged how-to
DayPilotCalenda Can you have double double and single click events?
I am not able to capture the double click event. When I double click it is calling the EventClick.
System.Data.SQLite.DLL is missing
Answered: This DLL is only required for some of the tutorials. http://www.daypilot.org/tutorials.html It's included in the Bin directory, not App_Data directory. You can also download it here: http://sqlite.ph...
Daypilot scheduler lite used in mvc3 razor project
Hi! I am working on a school project ( Hotel booking system ) it is a MVC3 razor project, and i am trying to implement daypilot scheduler into it. i managed to get the resources (rooms) loaded from t...
How to knows all the default css property name of DayPilot Calendar?
Answered: All the classes mentioned in the documentation should be working fine: alldayevent (all-day event box) event (event box) cellbackground (time cell) colheader (column header cell) alldayheader (all-da...
Multiple header to Columns
Answered: At this moment, the Scheduler (http://www.daypilot.org/scheduler.html) is only able to show two rows in the time header (X axis). The size of the cells in the first row can be set using CellGroupBy p...
Refresh data of navigator while calendar update
Answered: It is necessary to update the Navigator using a separate request called from DayPilotCalendar.AfterRenderJavaScript.
AfterRenderJavaScript="dpn.visibleRangeChangedCallBack();"
See also: http://kb...
Resource Tree from Database
I could not find any code in the forums building a tree from the database using id, parentid. (So I had to think myself :-( Here is how I did it. private void loadResources() { SqlDataAdapter da = ne...
Grouping Rows
Answered: You should only add one row for this resource to the Resources collection: DayPilotScheduler2.Resources.Add("LJ10", "LJ10") You should be able to list the resources using an SQL query similar to this...
Context menu hover css not working in IE8 quirks mode
Answered: Thanks for the update. The hover effect is defined using the following classes (see Demo/Themes/themes.css):
.menu_main a span
{
display: block;
height: 20px;
line-height: 20px;
width: 15...
Day Pilot Calendar event selection on right click
Answered: You need to customize the EventRightClickJavaScript code to do both actions: EventRightClickJavaScript="select(e)"
function select(e) {
e.eventSelect(e);
menu.show(e);
}
Where menu is the ...
Event Move
I've followed the tutorial and added an event handler and set event move handling like so: EventMoveHandling="CallBack" OnEventMove="DayPilotCalendar1_EventMove" but whenever I load the page with the...
Error: App_Web_4wv7e-qt reference
Answered: You can try to clear the ASP.NET temporary files folder: http://codebetter.com/brendantompkins/2006/11/15/fix-for-asp-net-could-not-load-file-or-assembly-app_web-error/ See also here: http://forums.a...
Events not rendering in Scheduler
Answered: Please check the following guide: http://kb.daypilot.org/101644/events-not-showing-up-in-the-scheduler/ The most important thing to check is that the resource id (Resource.Value) matches the resource...
e.value result in error
Answered: The JavaScript handling is a bit different in the Lite version. You should replace the code with something like this:
EventClickJavaScript="alert({0});"
The Lite edition doesn't use any JavaScrip...
Drop down for 'name' in calendar
Question: Can the monthly/daily/weekly view be changed so that an entry on a calendar date reflects a drop down box instead of a free text box for 'name'? The data element in the EVENT database is ca...
How to Enable week-numbers in Scheduler?
Answered: The week number will be displayed in the first header row if you use
dps.cellGroupBy = 'Week';
You can always override the onBeforeTimeHeaderRender() to customize the header HTML:
@Override
...
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