Questions Tagged how-to
Get a listing of events on a specific day?
How would we do this? We have tried just pulling the date from the database, but because of the recurrence string, etc we cannot get the correct items. There are always extra when an item is deleted ...
How do i use update panel for DayView
Hi I'm trying to use daypilot lite, to dispaly events on the calender and if the selected date changes..it should bind the data for that date..But it is not working.. Any help appreciated <div style=...
RecurrenceExpander.Expand Sort?
We are using RecurrenceExpander.Expand to show the upcoming sessions of a recurring class as a list of dates. If a single occurrence is moved that new occurrence date shows up in the middle of other ...
Delete Events in DP Month With Recurring Events
DP 7.1.2695 DP Month I'm running into trouble trying to delete events in a Month cal with recurrence support. How can I call a delete/remove function from JavaScript? Calling Delete from a DP Menu it...
Scheduler add ResourceColumn programmatically
Hi, I'm using the scheduler and i would like to add programmatically ResourceColumn. My sample code is: DataTable dt = dl.SelectRooms(); DayPilotScheduler1.Resources.Clear(); int i = 0; foreach (Data...
DateTime localization
Hello, how do you localize the dates with the mvc release of daypilot scheduler? I have tried setting Thread.CurrentThread.CurrentUICulture and Thread.CurrentThread.CurrentCulture. It's a multilangua...
Clientside Set Height
Answered: Thanks Dan for your help. The best way to do this is to use HeightSpec="Parent100Pct". You can set the height of the parent element as you wish. If you need to update the height to match the height o...
Fixed height for row (css override) ?
Hi, with Daypilot Scheduler < 7.0 is it possible to adjust the row height manually (maybe with some css overrides) to a fixed height ? In my specific case I need to limit the rows displayed for a res...
How to apply a theme to a day pilot day resource view
Answered: In the Lite version, CSS themes are only supported in version 4 and higher: http://www.daypilot.org/daypilot-lite-for-asp-net-webforms-4-0.html In both Pro and Lite, you need to follow these steps: 1...
How to display half hours
I have a day sheduler where I want the shifts from 8h30 till 17h. I want it to be in cells of 0:30min. But this doesn't work. When I change the cell duration to 30 I only get 00 and 30, not 08:30... ...
EventArrangementType for DayPilotScheduler (display overlapping events in a single row) ?
Hello, is it possible for DP Scheduler (Pro) to display events which overlap not to get arranged one per row but to get cascaded (or really just let them overlap in one single row) like in the DP cal...
Update navigator after changing date on server side
Hi all, maybe it's easy to do, but I can't set the initial date of navigator form the page_load function of my page. The problem is, that the startingdate will be set, but on the page the navigator w...
DayBeginsHour and DayEndsHour for Scheduler
Answered: You can hide non-business hours quite easily: http://www.daypilot.org/demo/Scheduler/HideNonBusiness.aspx Alternatively, you can handle the BeforeTimeHeaderRender event and set e.Visible based on the...
Resizing events to stack next to eachother
I work in a physician setting and am trying to find a way to make events half as wide to fit two events on a singuar line. I need one cell to look similar to the jpeg ive attached. Is this possible w...
Resizing events to stack next to eachother
I work in a physician setting and am trying to find a way to make events half as wide to fit two events on a singuar line. I need one cell to look similar to the jpeg ive attached. Is this possible w...
Update partialView
Hi, I am using the right click to change my project status: "@Html.DayPilotMenu("dpsMenu", dpsm);". It's work fine, but now I want to change (or reload) a partialView I use in the same page and I can...
Events Overlapping
Is there a way to disable the events overlapping feature? Our policy is the first one in will get the event and we do not take extra one in case of cancellations. Thanks for the help
Scheduler: Show Business hours per Ressource
Answered: You can change the cell background using OnBeforeCellRender method:
protected override void OnBeforeCellRender(BeforeCellRenderArgs e)
{
if (e.Start.Hour > 5 && e.ResourceId == "5") {
e.B...
How to insert an image inside a task cell in a Gantt Chart?
Answered: You can customize the header HTML using BeforeResHeaderRender event. This event is called once for each resource and you can modify e.InnerHTML as needed there. The default e.InnerHTML value is an es...
Instance of JsonData can't be cast to String
Answered: Hi all, I solved the issue here : I just added the line case JsonType.Array: return data[0].ToString (); default: at the end of the method, I regenerated the dll and it worked well... Strange that th...
Draw two rows in a column - one selected period and one for a message - DayPilot Scheduler
Hi, I have the following problem; using DayPilot Scheduler I want to have something like this: one line the period that is selectable one the empty line (not selectable) with a message displayed (wee...
Export only the visible part
Hello, When I export there all year, but I love that there is only the visible part of the exported calendar. Thank you?
Horizontal Scrolling - Daypilot Calendar Resource View
Answered: Since DayPilot Pro for ASP.NET WebForms 7.5 you can use the fixed column mode. http://doc.daypilot.org/calendar/fixed-column-width/ It will display the calendar columns with fixed width (ColumnWidth ...
Column for Aggregate/Calculated values in scheduler
Answered: At this moment it's only possible to add a new column on the left side of the main area (in addition to the column that you are already displaying). See also: http://www.daypilot.org/scheduler-row-he...
How to customize resource column value programmatically
Answered: You can access the Resource columns directly using Resource.Column collection:
DayPilotScheduler1.Resources[0].Columns[0].InnerHTML = "Room #12123";
Can I preload the Scheduler to remove the delay in events appearing when scrolling?
Answered: You can disable the progressive event rendering by using the following switch in the config: DynamicEventRendering = DynamicEventRenderingType.Disabled It will behave like this demo (WebForms): http:...
How do I adjust the header row time format in the Scheduler?
Answered: You can customize the header strings by overriding OnBeforeTimeHeader method. Just set e.InnerHtml as needed:
protected override void OnBeforeTimeHeaderRender(BeforeTimeHeaderRenderArgs...
How do I hook into when the user clicks a date in the Navigator?
Answered: You need to handle TimeRangeSelected event manually:
TimeRangeSelectedHandling = TimeRangeSelectedHandlingType.JavaScript,
TimeRangeSelectedJavaScript = "yourHandler(start, end);"
If you want to...
Problems with UpdatePanels
Answered: This bug is fixed now in build 7.2.2761. You can download it in the sandbox: http://www.daypilot.org/sandbox/ The fix will be included in the next release. Please let me know if there is still any pr...
Sync / Integrate with other Calendars
Answered: Hi Stephanie, It's possible to generate an iCalendar file using dday.ical library (or another icalendar library): http://www.ddaysoftware.com/Pages/Projects/DDay.iCal/ A tutorial that will show how t...