Active Questions
Scheduler event with milestones
Answered: In the 7.1 release, it's possible to add custom "active areas" to the event. It's a rectangular area that is displayed when you move the mouse over the event. In order to place the area at the right ...
Drag & Drop Item - Scheduler - Non-business days
This question is regarding the "Scheduler" app. I've created an Item which spans for 10 days. The moment I drag this item onto the Scheduler, the item occupies 10 days from the drop point. (Dropped t...
changing the culture & UICulture of the scheduler control?
Hello, Is there a way to change the culture and UICulture of the sechedular? I need to use my culture's Calendar "Hijri Calendar"? thanks.
Calendar - Weekend different color
Answered: You can change the color of the background cells using BeforeCellRender event handler. You can change the cell CSS class using e.CssClass, you can also change the IsBusiness status using e.IsBusiness...
Howto use a theme
Answered: You need to to include the .css file:
<link type="text/css" href='Themes/scheduler_white.css' rel="stylesheet" />
Enable CssOnly and specify the class prefix:
<DayPilot:DayPilotScheduler ...
Vertical scrollbar
Answered: You can control the vertical scrollbar using HeightSpec property: http://www.daypilot.org/calendar-control-height-and-business-hours-heightspec.html
Let users know when they already have an event scheduled for a particular time
Answered: There are two possible approaches: 1. Check the new event against the database before saving it. For a simple scenario (i.e. no recurring events) you can use the same logic you use for selecting even...
Hebrew Calendar
Answered: All the controls allow to override the headers with custom text/html. The internal calculations need to be based on the Gregorian calendar but you should be able to convert each date displayed to Heb...
Detailsview without a SqlDataSource
Answered: You can use ObjectDataSource instead. See also: http://stackoverflow.com/questions/1735096/using-a-detailsview-without-sqldatasource Alternatively, you can replace DetailsView with individual control...
Testing for Overlapping Events with SQL
Answered: As far as I know, without the NOT that would be. SELECT eventid from events WHERE((event_end >= '" & newEventStartDate & "') AND (event_start <= '" & newEventEndDate & "'));" This is exactly the same
Zero Duration Events broken in version 7.0
Answered: Dan, everything looks good. Thank you for fixing this.
Set parent resources background color
Answered: This ability to customize cells is not yet implemented in the CssOnly mode. It will be available in the next release: http://www.daypilot.org/daypilot-pro-for-asp-net-webforms-7-1.html As soon as it ...
Scroll to resource (Client-Side)
Answered: Since build 2668 you can do the following:
dps.scrollToResource("C");
You can download the latest build in the sandbox: http://www.daypilot.org/sandbox/ See also: http://www.daypilot.org/daypilot...
Date and Time
Answered: You will need to join these two fields in the select command: http://stackoverflow.com/questions/700619/how-to-combine-date-from-one-field-with-time-from-another-field-ms-sql-server But I would recom...
Calendar Day Colour
Answered: You need to replace the logic in isThereEvent() with an actual check against your data set. You will need to test for overlaps of the range define by date and date.AddDays(1) with the events. You can...
Displaying from other table
Answered: You can customize the event HTML using BeforeEventRender event handler. The original DB row is accessible using e.DataItem property. Example:
protected void DayPilotCalendar1_BeforeEventRender(...
Style day of events.
Hello, I have chosen to use the calendar control along with Daypilot as per the examples given in the package. It all works perfectly but I was wondering if it was possible and if so how can it be ac...
How Do I Export A Calendar With Events Populated From a DB?
Answered: You should load the events before calling Export:
DP_MonthCalendar.DataSource = yourDataTable
DP_MonthCalendar.DataBind()
Dim img As System.IO.MemoryStream = DP_MonthCalendar.Export(System.Drawin...
protected DataTable getData()
Answered: See a LINQ example here: http://kb.daypilot.org/56894/how-to-use-daypilot-scheduler-with-linq-to-sql/
var db = new DataClassesDataContext();
var events = from ev in db.Events where...