Questions Tagged calendar
Local Time Client Calendar but UTC Server Side
(2014-09-02 08:42 UTC) Hello All, I am using the 'ASP.NET WebForms 7.8 SP2 (build 7.8.3169)' Calendar object. I have an issue with Local/UTC DateTime handling. I have been going though all (most?) fo...
HourHalfBorderColor in CssOnly mode
Hi, i'm trying to update an old project using Daypilot Calendar to use the new CssOnly available since v7. I'm stuck trying to reproduce the HourHalfBorderColor properties of non CssOnly mode. I need...
Why does calendar add event at wrong time when using BusinessHoursNoScroll
Something seems weird when switching between businesshoursnoscroll and businesshours. The time of the event is incorrect. Here is a fiddle: http://jsfiddle.net/Viktor/uf6x4hdn/1/ Side note: It would ...
How to set every Sunday and Bank Holidays as different colour.
I have been trying to figure out how to can specify days and set there background colour. I have been trying different things like: (Just to set Sunday as a different colour, this didn't set the back...
How to set DayPilot calendar DayBeginsHour and DayBeginsHour dynamically
Answered: Not all properties are synchronized during the CallBack update - forcing the full update using DayPilotCalendar1.Update(CallBackUpdateType.Full) doesn't help. 1. You can place the Calendar control in...
IE 8 slow loading Calendar on Post-Back
Hi, we have an application that uses 6.9 pro with the webforms calendar and every time the page is posted back i.e. changing a date, the calendar takes a long time to render. Surprisingly the longest...
AfterRender-Event MVC Calendar
Answered: Ok, I've found a solution. I overwrite the function in the document.ready. Example: $(document).ready(function () { dpCalendar.afterRender = function () { afterRenderCallback(); } });
Calendar columns width
Hi, It's any way to determine the with of then calendar's columns in ressource view. WidthInPrct property of column object become obsolet. I would like to have 3 columns per day with 1 smaller (20%),...
InnerHTML render bug in Calendar cells
Hi everybody, I would like to know if there's a quick workaround to fix a bug (at least I suppose that is a bug) in cells render. I'm using the Calendar component, and I'm trying to inject some html ...
Events rendering very slowly on DP Calendar
Answered: Hi Dan, I think I found a possible reason why the calendar was so slow to load. I had a OnBeforeEventRender method to apply a color code each event, and that is why the rendering time was so long. No...
CSSClass problem in BeforeEventRender Method with Daypilot Calendar
Answered: The class is added to the element if CssOnly="False" is set on the DayPilot:DayPilotCalendar but not of CssOnly="True" I've figured this workaround: modify the InnerHtml to add a marker div then add ...
Disable cell selection
Answered: At this moment it's only possible to disable the cells for the whole row by marking it as parent using PreventParentUsage. See also: http://code.daypilot.org/34704/restaurant-table-reservation-tutori...
Vertical scrollbar
Answered: You can control the vertical scrollbar using HeightSpec property: http://www.daypilot.org/calendar-control-height-and-business-hours-heightspec.html
Navigator for DayPilot Calendar with ViewType='workweek'
Is there an easy way ('easy' meaning preferably some sort of DayPilot attribute/method) to make a navigator bound to a dpc whose viewtype is set to workweek? The problem I'm getting is that I'm using...
Resize calendar control to fill parent
Answered: Thanks to Dan for pointing this out for me: Every single parent element of the calendar must have its height set to 100%. I was missing the "height: 100%" on the HTML element of the page - adding tha...
Small IE layout issue with Calendar
Answered: Thanks, Richard. It's fixed now in build 6.6.2364. You can download and test it in the sandbox: http://www.daypilot.org/sandbox/Calendar/ScrollingArea.aspx See also: http://www.daypilot.org/daypilot-...
Calendar stuck in loading
Hi... I am not sure this is a bug, but I have a DayPilotCalendar in an UpdatePanel and bound to an EntityDataSource. When I initially load the page, it appears correctly. When I change its StartDate ...
How to show 22PM to 7AM as businesshours within a calender?
Answered: You can override IsBusiness status using BeforeCellRender event handler. This event is called for each calendar cell. You need to check the e.Start value and set e.IsBusiness as needed. See also: htt...
How to show slots that have EndTime >= 00:00
Answered: I'm not able to reproduce the problem. If I create a new event (from 22:00 to 00:00 the next day) it displays fine: http://www.daypilot.org/demo/Calendar/ Are you sure that you are loading the data f...
How to stop flickering of DayPilotCalendar in updatePanel
Answered: If you place the Calendar inside an UpdatePanel it gets redrawn completely during update. Different browsers may be able to handle it differently (IE is not very good at smooth redrawing). The page l...
how to change the value of the multipal DayPilotCalendar based on the click of DayPilotNavigator
Answered: Please see here: http://kb.daypilot.org/61736/how-to-bind-navigator-to-multiple-controls/
how to change the colour of e.DurationBarColor
Answered: You need to add this: DataTagFields="color" and handle BeforeEventRender event:
protected void DayPilotCalendar1_BeforeEventRender(object sender, BeforeEventRenderEventArgs e)
{
e...
New HeightSpec value
Answered: In the 6.5 release (http://www.daypilot.org/daypilot-pro-6-5.html), it will be possible to specify the displayed hours range independently of the business hours and HeightSpec using DayBeginsHour and...
Using MVC Calendar
Answered: After a bit of work, I've answered both these questions myself. Limiting hours displayed can be accomplished by setting HeightSpec = HeightSpec.BusinessHoursNoScroll Passing in data to the calendar o...
Exception when calendar in viewtype day
Answered: Hi Robert, This was a bug. It's now fixed in the sandbox build (6.3.2231). The fix will be included in 6.3 SP1 release. Thanks for reporting the issue!
Scroll labels don't show
Answered: Scroll labels are available again since 6.2 SP6 release: http://www.daypilot.org/daypilot-pro-6-2-sp6.html
hide non business hours with fixed height Calender
Answered: DayEndsHour property will be available in DayPilot Pro for ASP.NET 6.5 release: http://www.daypilot.org/daypilot-pro-6-5.html
Scroll labels won't display
Answered: Scroll labels are available again since 6.2 SP6 release: http://www.daypilot.org/daypilot-pro-6-2-sp6.html
How to print a calendar?
Answered: After some experimenting, I've found a workaround. The following code prompts the user to open/save the image. This makes it printable from IE as well.
Response.Clear();
Response.C...