Questions Tagged how-to
Object expected when pasting an event in Scheduler
Answered: It looks like you might be missing the DayPilot object reference when calling commandCallBack:
v.items = [{'text':'Paste', 'onclick':function() { var e = this.source; var command = this.item.comman...
ASP.net and MySql Support
I am trying to decide on a Scheduler Control addon for our website but our current Backend Database is MySQL. I have searched the forums and googled ever combination of DayPilot and MySQL but cannot ...
Recurrence Issue
I have an event in a database that needs to be set as recurring on the calendar. Currently I have a field called 'recurr' in the sql query for the data that is set to 1 for this event. How can I tell...
Duration Bar - Scheduler 7.6
Answered: Never mind. Just a .css difference between old and new. Set colour of duration bar in the style sheet, and removed "e.DurationBarColor = "#7cc144";" and it is now working properly.
scheduler - can i add more columsn on the resource side of the grid
Hi In the scheduler control can I add more columns on the resource side of the grid. Gary Goodwin
Only show weeks
We're trying to implement the DayScheduler in our booking system. In the system, we only allow friday-friday bookings. Is it possible only to show cells for weeknumbers, or when one pick a date in a ...
Changing Scheduler.CellGroupBy on runtime
Answered: Fixed it by adding "if (level == 0) groupBy = _scheduler.CellGroupBy;" to function "private TimeHeaderRow PrepareGroupline(int level)" in SchedulerTimeHeader.cs after line "GroupBy groupBy = _schedul...
Schedule Resources based on table
Answered: Yes, you can access Resources collection in the code behind. See a hint here (it's the doc for the Pro version but the mechanism is the same): http://doc.daypilot.org/scheduler/resource-loading/
EventClick, EventRightClick and all other mouse action handlers do not pass the event object (window.event in IE) to the javascript handler
Answered: I understand. Let me check how to do this.
Change color onclick through callback
Answered: You would have to store the value in the database or somewhere else in the WebForms, request a reload using Update() and set the new color in BeforeEventRender event handler. However, you can do it d...
Permissions on Scheduler
Answered: The best way to do this is to set EventMoveHandling and EventResizeHandling valu depending on the permission check. The default value is "Disabled" which will work for read-only scenarios. If the use...
How to send custom data to backend
Answered: Hi Isaac, You should be able to pass custom data to the server using .clientState property: http://doc.daypilot.org/calendar/clientstate/ ClientState is persisted until the page is refreshed and it i...
DayPilot Month - RTL direction (Sunday start from right to left)
Answered: Unfortunately RTL direction is only implemented for the Calendar control at the moment: http://doc.daypilot.org/calendar/rtl/
Bubble in ajaxtoolkit modalpopup
Hi, i use daypilot calendar in an ajaxtoolkit modalpopup extender and in this case the bubble are not dispayed. Did you have any idea to showing bubble Thanks
Column Header Height
Hi, i use calendar ressouce view and i would like to have different height in different columns header level. HeaderHeight property affect all level. I have custom html only for the first level (date...
Custom content in scheduler event DayPilotBubble
Answered: There are two options: 1. You can define the bubble HTML in BeforeEventRender event handler. This will store the bubble HTML with the event (it will be static). No server-side call will be required w...
Calendar.BeforeHeaderRenderEventArgs precision
Answered: 1. This has been changed recently. The BeforeHeaderRender is not called for the corner anymore. You can modify it directly using .CornerHtml property:
DayPilotCalendar1.CornerHtml = DayPilotCalenda...
Use Theme file and event height
Answered: The default CSS themes (white, green, transparent, etc.) and themes created using http://themes.daypilot.org should not affect the event dimensions. When adjusting the theme manually please remember ...
Create new Event
Answered: You can create a new event using a modal dialog that lets you enter the event details (name, start, end, etc.): http://doc.daypilot.org/month/event-creating/ See also the tutorials at http://code.day...
Refresh page after postback delete
Answered: You would have to do a manual refresh using commandCallBack(). See also here: http://doc.daypilot.org/scheduler/commandcallback/ But it is better to use dps.eventMenuClickCallBack() instead of PageMe...
Get ItemSource in BeforeEventRenderEventArgs after Postback
Answered: The e.DataItem is only available in BeforeEventRender on the server side. For additional data that need to be passed with the event through all its lifecycle you should use tag fields (*DataTagFields...
dynamuic dates for start and end of daypilotmonth
Answered: Please see the documentation on changing the date using Navigator here: http://doc.daypilot.org/month/navigator/
Creating EventClick on a Dynamic Component Daypilot
Answered: All user actions (clicking, moving, resizing....) are disabled by default. You need to set EventClickHandling to either CallBack or PostBack in order to activate the server-side event handler. Exampl...
Grouping Support
Answered: > Layer Multiple events: Group calendar view for multiple resources. Two options are available: 1. Resources in columns (Calendar control) http://mvc.daypilot.org/demo/Calendar/Resources 2. Resources...
Use jQuery datePicker to select the date
Answered: As soon as you know the selected date, you should send it to the server using commandCallBack() method in order to change the date and load the new event set. See ASP.NET MVC/Example 1 here: http://d...
Cellduration for scheduler 1 day only
Answered: its ok i set the end date as a date variable and used date.adddays(-1) on the end date
How to add datatags to event bubble
i was trying to populate datatag fields in the event bubble but could not find any answer so i came up with my own hope it helps some one in future this is done server side when you hover above an ev...
How to show Event Calendar from jquery
Answered: Please see the doc for jQuery calendar plugin: http://doc.daypilot.org/calendar/jquery/ Your example would look like this:
<link type="text/css" rel="stylesheet" href="themes/calendar_white.css" />...
getting the column id via context menu javascript
Answered: Here is an example of a context menu used for time range selection:
<DayPilot:DayPilotMenu ID="DayPilotMenuSelection" runat="server" CssClassPrefix="menu_default">
<DayPilot:MenuItem A...