Questions Tagged how-to
Reccurence problem in week view
Answered: The recurrence is designed this way. The first event is always fixed and the following occurrences are generated using the rule. You can update the start date of this first event to match the rule (i...
Reccurence problem in month view
Answered: You should move the first event so it matches the rule, please see also here: http://forums.daypilot.org/Topic.aspx/1376/reccurence-problem-in-week-view
Reccurence view
Answered: The first event is not considered a part of the series. That's why it can have any start and it's not counted towards the limit when Times() rule is used. See also: http://forums.daypilot.org/Topic.a...
Event Bubble render client side
Answered: It's possible to set the bubble HTML in advance so it isn't loaded from the server using BeforeEventRender event handler (use e.StaticBubbleHTML property).
protected void DayPilotMonth1_BeforeE...
Problem with DayPilotCalendar hosting on server
Answered: I suggest taking a look at the page HTML source. There is a JavaScript block that initialized DayPilotCalendar. It looks like this:
<script type='text/javascript'>
/* DayPilotPro: 6.5.2299.0 */
f...
Getting Start Time and End Time in Day / Week View
Answered: You might want to take a look here: http://www.daypilot.org/scheduler-time-range-selecting.html This article is about the Scheduler control but the other controls work the same way. Here is a KB tuto...
Order of display for events in Scheduler Resource Mode
Answered: You can user EventSortExpression property to specify order of overlapping events. See also here: http://www.daypilot.org/daypilot-pro-6-2-sp3.html
How add images to eventboxes
Answered: Harshad, Not sure if this is exactly what you're looking for, but you can do something like this in _BeforeEventRender: e.InnerHTML = "<img src='img.png' onclick='alert(this)' />" + e.Tag["evt_nm"];
Testing and message for attempt to create new event before current time and date
Answered: It depends on how you are creating a new event. If it's directly on TimeRangeSelected it could look like this:
TimeRangeSelectedHandling="JavaScript"
TimeRangeSelectedJavaScript="check(start, end,...
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...
event resize javascript scheduler
Answered: Please see the following documentation pages: http://www.daypilot.org/calendar-event-resizing.html http://www.daypilot.org/calendar-event-moving.html Look for JavaScript Handling section. In short, y...
DayPilot Scheduler Focus On a Date
Answered: You can use the following method:
DayPilotScheduler1.SetScrollX(new DateTime(2011, 7, 15));
Change mouse icon to hand on mouse over of monthview
Answered: At this moment it's hardcoded. You would need to change it in the source code.
Setting DataTextField to an object's property which is string array
Answered: You will probably have to change the structure of your data source. DayPilot converts the value of the specified field to string using Convert.ToString() call. The other option is to change it in the...
DayPilot Calendar for MVC
Answered: The latest sandbox build now contains a demo page that shows a hierarchy of resources: http://mvc.daypilot.org/sandbox/Calendar/DaysResources The sources is a modified Calendar/Index example. 1. The ...
How to get the previous and next linkbuttons
Answered: There are no built-in buttons at this moment, but it's easy to add them. See an example from Scheduler/Default.aspx:
<a href="javascript:dps1.commandCallBack('previous');">◄</a>
<a href="ja...
Level in header
Answered: Hi Eneko The second level that you say, is for the alldaysevent property, if you put this to "false" it's disappears Regards
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...
Problem with datatable?
Answered: You have probably used one of the tutorials that work with an embedded SQLite database. You should replace SQLiteDataAdapter with SqlDataAdapter to use SQL server instead.
How to delete an selected element with a supr keypress
Answered: This is difficult to do. It would be possible to catch the keydown/keypress event but since there is no focusable element it would be necessary to do it for the window object. This could potentially ...
WeekQuarterDay
Hello * i wanted to implement a new Zoom called "WeekQuarterDay". So that you can see one day divided in 4 cells (0- 6; 6 - 12; 12-18;18-24). Almost everythink seems to be fine..but I got one problem...
ImageLink Button Causing Problems
I am using the control in "Scheduler" mode. The left most column holds the day. As the control is generated, I am adding a link button that calls a javascript method which, in turn, causes a post bac...
Different Line Color for 30 Minute Mark
Greetings! We're working with DayPilot Pro, and would like to have a different colored line for the 30 minute mark. I'll clarify with an example: We'd like to have: The 1:00pm line be red. The 1:30pm...
only current date in popup ?
Hello, When we use this code, the time in the popup is right, but date gives only current date, not the navigated date. Calender itself is navigating properly. Isnt "start" the NAVIGATED date ? <dayp...
Can the scheduler handle multiple time zones
Answered: Unfortunately, this scenario is not supported at the moment.
how to set DurationBarColor colour from database
In database i have field called colour, it contain colour name like red, green. i want to setthese colour toDurationBarColor. Can somebody tell me how to do that.
How to Custom Sort Resources
Answered: The order in which you add the resources to the Resources collection is preserved.