Questions Tagged how-to
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...
Clear all the events from the calendar
Answered: In the Lite version, there is no client-side API to do this. The only way is to look for event <div> elements using jQuery and delete them.
Shoeing time only form 9 AM
Answered: In the Calendar, you can change the business hours using BusinessBeginsHour and BusinessEndsHour: http://doc.daypilot.org/calendar/business-hours/ You can also change the HeightSpec value to show ful...
Show diferent intervals between one hour to another
Answered: You can use TimeHeaderCellDuration property to customize the time header cell size (Calendar): http://doc.daypilot.org/calendar/time-header-cell-duration/ OnBeforeTimeHeaderRender method can be used ...
Create event
Hi, How do I create an event in the lite version. There doesn't seem to be any tutorials for novices. Is there any walk through's out there? I've opened the demo in visual studio 2008 and when I clic...
can't bind to DayPilotMonth
Answered: Please check this troubleshooting guide for loading events in the Scheduler: http://kb.daypilot.org/101644/events-not-showing-up-in-the-scheduler/ See also the doc on loading events: http://doc.daypi...
Highlight Events in Navigator
Answered: The documentation page is now updated with a MVC howto: http://doc.daypilot.org/navigator/highlighting-busy-days/ You need DayPilot Pro for ASP.NET MVC 7.3 or higher.
How to delete event in DayPilot Lite Calendar
Answered: To refresh the calendar (Lite), you need to place it inside an UpdatePanel and call UpdatePanel.Update().
Recurrent resource's event problem
Hi, I have a scheduler with a hierarchical resource tree. In this tree I have some recurrent resources (with the same ID). At the moment the recurrent resource's events appear only at the first occur...
AfterRenderJavaScript missing in MVC
Answered: It's now available in the latest sandbox build (7.5.5595): http://mvc.daypilot.org/sandbox/ It will be included in the next release.