Questions Tagged how-to
Reject new values from server-side
Hi, I’m using DayPilotScheduler resize event, to update new start and end dates of my events into data base. Before accept those changes, some server-side validations are done and new values must be ...
How to update other controls on the page with callbacks?
Answered: You can use AfterRenderJavaScript and update the other parts of the page manually (JavaScript), as demonstrated here: http://kb.daypilot.org/92633/how-to-show-the-selected-date-using-a-label-control/
JsonData, client-side array as a param
Answered: This code seems to be fine. This exception would be thrown if you used something like this:
protected void DayPilotScheduler1_Command(object sender, DayPilot.Web.Ui.Events.CommandEventArgs e)
{
...
event selection with PostBack
Answered: You should set EventClickHandling="Select" and EventSelectHandling="PostBack". EventSelect will be fired on the server side.
Help! How to Hide Date in Events?
Answered: In the Calendar (http://www.daypilot.org/calendar.html): ShowEventStartEnd="false" In the Month (http://www.daypilot.org/month.html): ShowEventStartEnd="false" In all controls: Using BeforeEventRende...
Hiding Context Menu
Answered: Disabling the tooltip (for all controls): ShowToolTip="false" The Bubble (http://www.daypilot.org/bubble.html) will be closed automatically when the context menu is open. The workaround for closing t...
Problem with modal popup
Hi, my aspx page use Daypilot calendar 6.4.2251.1. Here I place an update panel that is show as modal popup on click events in the calendar. The event is EVENTMENUCLICK. The modalpopup extender is li...
Open PartialView in Modal Window
I have looked at the article on How to open a new event dialog using TimeRangeSelected event using modal.js and wondered if anyone has done this using the Razor engine of MVC 3? The article loads an ...
Day Pilot Scheduler - How can I pass the DataValueField to a javascript function on EventClickJavascript event ?
Answered: {0} should get replaced with the DataValueField value (EventID in your case). See the following code snippets: DayPilotScheduler.cs
string val = DataBinder.GetPropertyValue(dataItem, DataValueFie...
Limit number of events per resource
Answered: Yes, this can be implemented as part of the server-side logic. However, there is no way to restrict time range selecting individually per resource on the client side.
Day Pilot Scheduler(Asp.Net) - When does the day end (Event Resize)?
Answered: This url shows a demo for the Java version (http://java.daypilot.org/): http://java.daypilot.org/demo/Scheduler/ There is a bug in version 1.1.183. It's already fixed in the latest sandbox build: htt...
separator adding
Answered: You can do it in the .aspx file:
<DayPilot:DayPilotScheduler ID="DayPilotScheduler1" runat="server"
....
>
<Separators>
<DayPilot:Separator Color="green...
Separator not accepting more than 2 arguments
Answered: Please check for possible typos, the method is there and this example should work fine:
// Red separator with 50% opacity placed at the current day with width equal to CellWidth, shown above events...
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
...