Questions Tagged how-to
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.
Tutorials
Answered: The tutorials which include DayPilot Lite are licensed under Apache Software License 2.0 and can be used for free. The tutorials which include DayPilot Pro are licensed for evaluation purposes only. ...
How to manually resize the scheduler (and calendar) vertically on initial page load
Answered: There are two options: Use HeightSpec="Parent100Pct" and let the scheduler adjust its height according to the parent element automatically (see http://doc.daypilot.org/scheduler/100-pct-height/). It ...
Fixed-width events
Is it possible to display a day-view with fixed width events - i.e. that don't resize to the whole day width?
how to customize navigator's date format?
Hello, now dateformat of date in navigator is like "September 2013". i want to change this to "yyyy-MM(2013-09)". it seems i can do with DayPilot.Locale, but i don't know how to. thank you
Event Color customizing issue
Hi, i set CssClassPrefix="calendar_blue" and CssOnly="true" and im trying event color looks difference when they have each other class name. so what i did is... i made some classes,(name is color01~2...
Disable User Adding Events to a Row
Hello, I am trying to stop users adding new events to certain rows in the Daypilot Scheduler. Is there a way to disable adding events to certain rows or Resources? Thanks
How to input x button in event when i use CssClassPrefix?
Answered: The delete icon is not supported in the CssOnly mode. It is replaced by more universal system of "active areas". You can add the delete button using BeforeEventRender:
protected void DayPilotCalend...
Adjusting the event starting position in the scheduler
Answered: You can configure this behavior using UseEventBoxes property. UseEventBoxes = UseEventBoxesType.Never will do exactly what you need.
Is there a way to await an event (commandCallBack)?
Answered: You can use AfterRender client-side handler (AfterRenderJavaScript property in MVC DayPilotSchedulerConfig). This script will get called after every update (including the initial rendering). You can ...
empty Json
I followed this tut to make navigation in calendar using scheduler code.daypilot.org/33944/event-calendar-day-week-month-for-asp-net-mvc I have done all exactly the same when I click on calendar on O...
EventClickHandling="PostBack" how to get value in c#
Answered: protected void DayPilotCalendar1_EventClick(object sender, DayPilot.Web.Ui.Events.EventClickEventArgs e) { txtValue.Text = e.Value; }
Dynamic cellduration/cellwidth/time header
Answered: This is not yet possible. It sounds good, let me do a few tests.
How to get parent resource id
Hi, I'm using daypilot scheduier. Dynamically i'm creating the resource tree . My code is like below Resource res = new Resource(StoreName, StoreID); DayPilotScheduler1.Resources.Add(res); res.Childr...
Add a textbox on each row of Scheduler
Answered: You can add the textbox by setting custom InnerHTML to something like "<input type='text' id='myid' />'. You can access it through Resources collection or using BeforeResHeaderRender event (e.Columns...
EventMoveHandling=javascript?
Answered: Kevin, You can try this:
EventMoveJavaScript="eventMove(e.start(), newEnd)"
In this event handler the following variables are available: * e - DayPilot.Event object * newStart - DayPilot.Date obj...
Culture/Localization support for DayPilot MVC scheduler
Answered: At this moment it uses the culture of the current thread. I.e. you can set it globally in web.config:
<configuration>
<system.web>
<globalization culture="en-US"/>
</system.web>
...
Multiple Schedulers in one page
Answered: Each scheduler will be represented by a special object on the server side and also on the client side. Using two schedulers on the same page should be no problem.
events not displaying in daypilot Clander lite
the same code used in daypilot pro it is working but when the code used in daypilot calender lite the calender is displaying but the events not displaying
Remove/transparent event border
Answered: You should be able to use a custom CSS class for this special event (set e.CssClass in BeforeEventRender event handler). Since build 7.4.2948 you can use CellMarginBottom property to specify minimal ...
Within 15 minutes
Answered: I believe what you are looking for is inside the <daypilot:daypilotcalendar ....CellDuration="15"..../>