DayPilot Forums (New Questions) http://forums.daypilot.org/ DayPilot Forums - new questions. Order overlapping events Hi guys!

I have this situation:
more event, at the same time and day, shown on daypilot calendar overlapped.

The databinding is made by datatable.

The question is:
why, for example, if i add to the datable rows EVENT A first at 12.00 and EVENT B before at 12.00 (same day) the event B in some cases is shown ON the event A. I want that the first add to datatable rows is the first to be shown!

How can i decide the order of the overlapped events?

Thanks in advance

PS. i have posted a picture to show an example. The events in red must be EVER on the events in blue!
The events in red are EVER add to datable rows before the blues.

Rao

]]>
http://forums.daypilot.org/Topic.aspx/1551/order-overlapping-events Rao http://forums.daypilot.org/Topic.aspx/1551/order-overlapping-events Wed, 22 Feb 2012 10:04:56 +0100
Display multiple lines in Month calendar Has anyone been able to to expand an event that display on the month control to expand to multiple lines
to show the entire event description?

Thanks for any suggestions or solutions

John

]]>
http://forums.daypilot.org/Topic.aspx/1550/display-multiple-lines-in-month-calendar John K http://forums.daypilot.org/Topic.aspx/1550/display-multiple-lines-in-month-calendar Tue, 21 Feb 2012 16:57:32 +0100
Scroll bar in In DayPilotCalendar1 week view how to enable scroll bar for the events?

]]>
http://forums.daypilot.org/Topic.aspx/1549/scroll-bar-in- Mathi http://forums.daypilot.org/Topic.aspx/1549/scroll-bar-in- Tue, 21 Feb 2012 10:19:41 +0100
Scheduler ViewType days - BeforeCellRender : Wrong start - end With the scheduler when property "ViewType" is set to value "Days" we have a problem with the following event : "OnBeforeCelleRender".

  • aspx

OnBeforeCellRender="BeforeCellRender"

  • Code behind

protected void BeforeCellRender(object sender, DayPilot.Web.Ui.Events.BeforeCellRenderEventArgs e)
{
e.InnerHTML = e.Start.ToShortDateString();
}

e.Start and e.End will always stay at the same values of the first line.

This bug appears is present in :
6.7.2410
6.4.2251.0
but not in :
5.4.1722.1

]]>
http://forums.daypilot.org/Topic.aspx/1548/scheduler-viewtype-days---beforecellrender--wrong-start---e Dargaud Philippe http://forums.daypilot.org/Topic.aspx/1548/scheduler-viewtype-days---beforecellrender--wrong-start---e Mon, 20 Feb 2012 15:41:43 +0100
DayPilot Is DayPilot compitable with safari?
which version of daypilot used for ipad

]]>
http://forums.daypilot.org/Topic.aspx/1547/daypilot Smita http://forums.daypilot.org/Topic.aspx/1547/daypilot Mon, 20 Feb 2012 07:27:31 +0100
dpc1.commandCallBack("refresh") (javascript) will not refesh calendar (asp.net) Hi, I'm trying to refresh the calendar from a Javescript function. The first time the page is loaded, the function fires as expected and the calendar is updated; after that initial working action, it will never update again. I've tried postback, callback, JavaScript, voodoo dolls, four leaf clovers, a threat of physical force, yet it won't work. Here's the entire javascript:

function editStaff() {
var modal = new DayPilot.Modal();
modal.top = 60;
modal.width = 300;
modal.height = 400;
modal.opacity = 0;
modal.border = "10px solid #d0d0d0";
modal.closed = function () {
if (this.result != "cancel") {
dpc1.commandCallBack("refresh");
}
};
var curText = document.getElementById("<%= hfStaffName.UniqueID %>").value;
if (curText.length > 0) {
var url = "staff/editstaff.aspx?staff=" + curText;
modal.showUrl(url);
}
}

<daypilot:daypilotcalendar id="DayPilotCalendar1" runat="server" ShowAllDayEventStartEnd="true"
AllDayEventBackColor="Gray"
AllDayEnd="DateTime"
CellBorderColor="#000000"
datastartfield="eventstart"
dataendfield="eventend"
datatextfield="ItemDesc"
datavaluefield="id"
datatagfields="color,name"
DataAllDayField="allday"
BusinessBeginsHour="8"
BusinessEndsHour="22"
ViewType="Resources"
DataColumnField="resource"
OnEventMove="DayPilotCalendar1_EventMove"
OnEventClick="DayPilotCalendar1_EventClick"
OnEventEdit="DayPilotCalendar1_EventEdit"
OnBeforeEventRender="DayPilotCalendar1_BeforeEventRender"
OnEventDelete="DayPilotCalendar1_EventDelete"
OnEventSelect="DayPilotCalendar1_EventSelect"
OnEventResize="DayPilotCalendar1_EventResize"
OnTimeRangeSelected="DayPilotCalendar1_TimeRangeSelected"
OnTimeRangeDoubleClick="DayPilotCalendar1_TimeRangeDoubleClick"
OnTimeRangeMenuClick="DayPilotCalendar1_TimeRangeMenuClick"
OnCommand="DayPilotCalendar1_Command"
OnBeforeCellRender="DayPilotCalendar1_BeforeCellRender"
OnBeforeTimeHeaderRender="DayPilotCalendar1_BeforeTimeHeaderRender"
OnEventMenuClick="DayPilotCalendar1_EventMenuClick"
EventMoveHandling="Callback"
TimeRangeSelectedHandling="Postback"
EventDeleteJavaScript="if (confirm('Do you really want to delete ' + e.text() + ' ?')) dpc1.eventDeleteCallBack(e);"
EventResizeHandling="CallBack"
EventClickHandling="Postback"
EventSelectHandling="Postback"
ClientObjectName="dpc1"
EventEditHandling="Callback"
EventDeleteHandling="Postback"
EventSelectColor="Blue"
HeightSpec="BusinessHoursNoScroll"
ContextMenuID="DayPilotMenu1"
Showalldayevents="false"
Useeventboxes="Always"
ShowToolTip="true"
EventDoubleClickHandling="PostBack"
EventDoubleClickJavaScript="alert(e.value());"
TimeRangeDoubleClickHandling="Postback"
TimeFormat="Clock12Hours"
ContextMenuSelectionID="DayPilotMenuSelection"
CssClassPrefix="calendar_silver_"
HourNameBackColor=""
BorderColor="#A0A0A0"
HourBorderColor="Black"
HourHalfBorderColor="Black"
EventBorderColor="#505050"
AllDayEventBorderColor="#ff0000"
EventArrangement="SideBySide"
CellDuration="15"
HeaderLevels="2"
HeaderDateFormat="dddd MMMM d,yyyy"
OnHeaderClick = "DayPilotCalendar1_HeaderClick1"
HeaderClickHandling="Postback"
></daypilot:daypilotcalendar>

Code behind:

Protected Sub DayPilotCalendar1_Command(ByVal sender As Object, ByVal e As CommandEventArgs)
Dim sMsg As String = Nothing
Select Case e.Command
Case "previous"
DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(-1)
LoadEvents()
defineColumns()
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update(CallBackUpdateType.Full)
Exit Select
Case "next"
DayPilotCalendar1.StartDate = DayPilotCalendar1.StartDate.AddDays(1)
'lblCalHead.Text = DayPilotCalendar1.StartDate.ToString("MMMM yyyy")
LoadEvents()
defineColumns()
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update(CallBackUpdateType.Full)
Exit Sub
Case "today"
DayPilotCalendar1.StartDate = DateTime.Today
LoadEvents()
defineColumns()
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update(CallBackUpdateType.Full)
Exit Sub
Case "navigate"
Dim start As DateTime = CType(e.Data("start"), DateTime)
Dim [end] As DateTime = CType(e.Data("end"), DateTime)
DayPilotCalendar1.StartDate = start.AddDays(DayPilotCalendar1.Days - 1)
LoadEvents()
defineColumns()
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update(CallBackUpdateType.Full)
Exit Sub
Case "refresh"
LoadEvents()
defineColumns()
DayPilotCalendar1.DataBind()
DayPilotCalendar1.Update(CallBackUpdateType.Full)
Exit Sub
End Select
End Sub

I'm totally lost here and my client is really getting impatient. Any help you could give me would be most appreciated.

]]>
http://forums.daypilot.org/Topic.aspx/1546/dpc1-commandcallbackrefresh-javascript-will-not-refesh-cale David East http://forums.daypilot.org/Topic.aspx/1546/dpc1-commandcallbackrefresh-javascript-will-not-refesh-cale Fri, 17 Feb 2012 06:52:53 +0100
Styling DayPilot Month Hi there,

I'm currently working with the DayPilot Pro for ASP.NET Demo and am having problems with turning off the "style" attributes applied to the "Month".

I note that from the Month: CSS Class Styling page (http://www.daypilot.org/month-css-class-styling.html) that I need to "unset the default values" to allow my own CSS classes to be used. However, where would these overrides need to be applied?

I have found the options for Calendar and Scheduler, but no options for Month.

Please note that I am purely a front-end developer (XHTML and CSS) so I have a limited understanding of ASP.NET.

If anyone could point me in the right direction I would be very grateful.

Thanks.

]]>
http://forums.daypilot.org/Topic.aspx/1545/styling-daypilot-month AC http://forums.daypilot.org/Topic.aspx/1545/styling-daypilot-month Tue, 14 Feb 2012 13:11:14 +0100
DayPilotMenu in MVC Can you use the DayPilotMenu in MVC? I have been unable to find any examples, tutorials, or forum posts on how to do this. If not, is there a context menu available in MVC?

Thank you.

]]>
http://forums.daypilot.org/Topic.aspx/1543/daypilotmenu-in-mvc Anonymous http://forums.daypilot.org/Topic.aspx/1543/daypilotmenu-in-mvc Wed, 08 Feb 2012 18:34:42 +0100
Size Row nello Scheduler E' possibile dare una dimensione alla singola riga dello scheduler?
Non di tutto lo scheduler, ma di una specifica riga.

I can give dimension to a single line in the scheduler?
Not all of the scheduler, but a specific row.

]]>
http://forums.daypilot.org/Topic.aspx/1542/size-row-nello-scheduler Francesco La Scala http://forums.daypilot.org/Topic.aspx/1542/size-row-nello-scheduler Wed, 08 Feb 2012 18:03:46 +0100
Can we have sub menus from the rightclick menu control Hi,

Thanks for a great product.

Would it be possible to have the ability to add sub (child) menus from the right click menu?

Some are menus are built dynamically and some are getting quite long now and could be tidied up by slitting the values into sub categories.

For instance a list of users could become a list of departments which when rolled over could show the users for that department.

Thanks

]]>
http://forums.daypilot.org/Topic.aspx/1541/can-we-have-sub-menus-from-the-rightclick-menu-control DB http://forums.daypilot.org/Topic.aspx/1541/can-we-have-sub-menus-from-the-rightclick-menu-control Wed, 08 Feb 2012 12:00:46 +0100
Agenda / Upcoming events list Hi,
Does the DayPilot calendar allow for creation of an Agenda, similar to the one in Google calendar? I'm really just looking for a list of upcoming events with the option to include my own text/columns.

e.g.
01/02/2012 - 12:30 - Sales meeting.
Attendees - Fred, John & Dave

01/02/2012 - 18:00 - Pickup dry cleaning.

Regards
Dave

]]>
http://forums.daypilot.org/Topic.aspx/1540/agenda--upcoming-events-list Dave http://forums.daypilot.org/Topic.aspx/1540/agenda--upcoming-events-list Tue, 31 Jan 2012 13:40:21 +0100
"A script on this page is causing IE to run slowly" error when I use DayPilot Has there been any report of DayPilot running 5million+ script statements? I actually have everything set to use postbacks, so I'm not even sure what scripts are running.

]]>
http://forums.daypilot.org/Topic.aspx/1539/a-script-on-this-page-is-causing-ie-to-run-slowly-error-whe Joe Letizia http://forums.daypilot.org/Topic.aspx/1539/a-script-on-this-page-is-causing-ie-to-run-slowly-error-whe Mon, 30 Jan 2012 22:24:21 +0100
How to use the parent100pct in DayPilotCalendar Hi there,

I have a DIV gnerated as follows :
<div id="div1" runat="server" style="position:absolute; top:110px; left:150px; right:10px; bottom:10px;">

Within this DIV I have a DayPilotCalendar control withh the (new) option HeightSpec=parent100pct.

But, the calendar control is not sized according to the DIV, but according to its cellehight.
(it looks like the "older" HeightSpec=Full.

How do I solve this?

Kind regards
Martin

]]>
http://forums.daypilot.org/Topic.aspx/1537/how-to-use-the-parent100pct-in-daypilotcalendar Martin http://forums.daypilot.org/Topic.aspx/1537/how-to-use-the-parent100pct-in-daypilotcalendar Sat, 28 Jan 2012 18:09:17 +0100
Day Pilot Scheduler question I want to be able to fill in the day events for each resource listed. Here is what I have so far . . .

LOB 101
LOB 102
LOB 103
etc.

After loading the resources (i.e., rooms), I want to go back and populate events for each room such as . . .

January
24 25 26
LOB 101 Meeting 1 Meeting 2 Meeting 3
LOB 102 Meeting 4

How can I iterate through the list of resources, get the events for each resource and display them as above. Unfortunately, the way the database was designed it does not have a one to many relationship between resource and events..

Thanks.

]]>
http://forums.daypilot.org/Topic.aspx/1535/day-pilot-scheduler-question Steve Holland http://forums.daypilot.org/Topic.aspx/1535/day-pilot-scheduler-question Tue, 24 Jan 2012 20:35:58 +0100
How to assign a list type variable to data columnfield of daypilotCalender ? i am adding columns to day pilot calender control for resource view. I have a list of rooms and inside that name field is there which i want to assign to the data column field.

roomList.Items.ForEach(itm =>
{
col = new DayPilot.Web.Ui.Column(itm.Name, itm.Id.ToString());
DayPilotCalendar1.Columns.Add(col);
});

DayPilotCalendar1.DataColumnField = "Rooms"; // Rooms is a list type, and inside that 'Name' the field i want to assign to data column.

]]>
http://forums.daypilot.org/Topic.aspx/1534/how-to-assign-a-list-type-variable-to-data-columnfield-of-d np http://forums.daypilot.org/Topic.aspx/1534/how-to-assign-a-list-type-variable-to-data-columnfield-of-d Tue, 24 Jan 2012 18:02:58 +0100
how to match data source id with columns's ids in resource view? i am adding columns to day pilot calender control for resource view, i am not seeing the data in the control. do i need to match the data source id and column id explicitely ? how can i do that?

roomList.Items.ForEach(itm =>
{
col = new DayPilot.Web.Ui.Column(itm.Name, itm.Id.ToString());
DayPilotCalendar1.Columns.Add(col);
});

DayPilotCalendar1.DataColumnField = "Rooms";

Thanks

]]>
http://forums.daypilot.org/Topic.aspx/1533/how-to-match-data-source-id-with-columnss-ids-in-resource-v np http://forums.daypilot.org/Topic.aspx/1533/how-to-match-data-source-id-with-columnss-ids-in-resource-v Mon, 23 Jan 2012 17:53:49 +0100
Scheduler not updating associated data bound list view Hi,
I have a page that uses a databound list view for unscheduled events that I drag onto the DayPilotScheduler and that works nicely, the event is placed on the schedule and removed from the listview. I use a contextual menu to unschedule events. The events get removed from the schedule, but don't make it back to the listview. When I look in my code behind, the actions are being taken on the server side, but the listview doesn't get refreshed on the server side. I have wrapped the both the unscheduled events and the scheduler in an update panel, but it seems like the listview doesn't really get any communication from the scheduler. If I refresh the page, all is well, but I would like this to work asynchronously. Thank you.

]]>
http://forums.daypilot.org/Topic.aspx/1532/scheduler-not-updating-associated-data-bound-list-view Clay http://forums.daypilot.org/Topic.aspx/1532/scheduler-not-updating-associated-data-bound-list-view Sun, 22 Jan 2012 22:07:36 +0100
CellDuration and Event Time Hi,

If I have the cell duration as 15 minutes, and my event time is from 9:00 to 9:20 AM. The event is being displayed only from 9:00 to 9:15 PM. Is there any way to get around this, so that the event occupies one-third of the 9:15 to 9:30 AM cell.

Thanks,
Antony

]]>
http://forums.daypilot.org/Topic.aspx/1531/cellduration-and-event-time Antony http://forums.daypilot.org/Topic.aspx/1531/cellduration-and-event-time Fri, 20 Jan 2012 19:50:42 +0100
event left bar color height how to increase event's left bar color's height in day pilot calender control?

]]>
http://forums.daypilot.org/Topic.aspx/1530/event-left-bar-color-height np http://forums.daypilot.org/Topic.aspx/1530/event-left-bar-color-height Fri, 20 Jan 2012 00:21:21 +0100
change row header name how to change row data field. how to change row header names, instead of time i want to show room names

]]>
http://forums.daypilot.org/Topic.aspx/1529/change-row-header-name np http://forums.daypilot.org/Topic.aspx/1529/change-row-header-name Wed, 18 Jan 2012 23:22:57 +0100
How to redirect to another Pager (Controller Action) when clicking an event ? Hi,

i try to find a solution to redirect to another controller action when i click an event in the daypilotmonth component.
Maybe someone has an idea or a small peace of code to solve that problem?

Thank and best regards,

Torsten

]]>
http://forums.daypilot.org/Topic.aspx/1528/how-to-redirect-to-another-pager-controller-action-when-cli Torsten http://forums.daypilot.org/Topic.aspx/1528/how-to-redirect-to-another-pager-controller-action-when-cli Wed, 18 Jan 2012 15:34:34 +0100
International languages? Hi, does the control renders with the language that the culture of the browser contains?
i.e. the month and days in English when the browser language feature is in English or Spanish
if the browser language is Spanish. Thanks!

]]>
http://forums.daypilot.org/Topic.aspx/1527/international-languages Carlos http://forums.daypilot.org/Topic.aspx/1527/international-languages Tue, 17 Jan 2012 16:51:00 +0100
Compiler Error Message: BC30451: Name 'DayPilot' is not declared. I have included the import specification also in Modal.vb as

Imports DayPilot.Web.Ui.Json
Imports DayPilot.Web.Ui

Still i am getting an error Pleas I am expecting a help from anybody esle

Source Error:
Line 16: page.Response.Write("<script type='text/javascript'>")
Line 17: page.Response.Write("if (parent && parent.DayPilot2 && parent.DayPilot2.ModalStatic) {")
Line 18: page.Response.Write("parent.DayPilot2.ModalStatic.result = " & DayPilot.Web.Ui.Json.SimpleJsonSerializer.Serialize(result) & ";")
Line 19: page.Response.Write("if (parent.DayPilot2.ModalStatic.hide) parent.DayPilot2.ModalStatic.hide();")
Line 20: page.Response.Write("}")

]]>
http://forums.daypilot.org/Topic.aspx/1526/compiler-error-message-bc30451-name-daypilot-is-not-declare Ananth http://forums.daypilot.org/Topic.aspx/1526/compiler-error-message-bc30451-name-daypilot-is-not-declare Sat, 14 Jan 2012 13:07:46 +0100
Recurrence Events showing indefinetly share point recurrence events showing in all the days , though we have set the event to occur every first week of the month.

Please share your suggestions in resolving this issue.

]]>
http://forums.daypilot.org/Topic.aspx/1522/recurrence-events-showing-indefinetly Harsha Vardhan http://forums.daypilot.org/Topic.aspx/1522/recurrence-events-showing-indefinetly Tue, 10 Jan 2012 08:27:37 +0100
netbeans + apache Hi, I’m tried deploy java calendar with netbeans as web project, but without success. I tried create project from yours war file, also I tried create own with project with your files. Nothing worked, and I’m still getting error:

org.apache.jasper.JasperException: /WEB-INF/tags/header.tag(8,5) Unable to load tag handler class "org.daypilot.demo.tag.RootTag" for tag "navi:Root"
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:198)

Any help?

]]>
http://forums.daypilot.org/Topic.aspx/1521/netbeans--apache Anonymous http://forums.daypilot.org/Topic.aspx/1521/netbeans--apache Sat, 07 Jan 2012 21:08:13 +0100
Level Missing from BeforeTimeHeaderRenderArgs Why was the Level property removed from the BeforeTimeHeaderRenderArgs object in the latest release for MVC scheduler? How can you format the bottom row/level of the header without affecting the format of the top row/level now?

]]>
http://forums.daypilot.org/Topic.aspx/1520/level-missing-from-beforetimeheaderrenderargs Whitney http://forums.daypilot.org/Topic.aspx/1520/level-missing-from-beforetimeheaderrenderargs Thu, 05 Jan 2012 22:41:33 +0100
CSS how to set css for light to dark color between two dates .
Ex:
i have 15-3-2010 to 15 -4 -2010 for that i have to set color but dark color start from this date 10-4-2010

]]>
http://forums.daypilot.org/Topic.aspx/1518/css Raj http://forums.daypilot.org/Topic.aspx/1518/css Thu, 05 Jan 2012 06:48:21 +0100
Header Row Column not aligned with Event Column Hi

I am just following the tutorial, and default behavior shows that the column widths for the header date row and the event time slots are always out of alignment, am I doing something wrong?

]]>
http://forums.daypilot.org/Topic.aspx/1517/header-row-column-not-aligned-with-event-column Clare http://forums.daypilot.org/Topic.aspx/1517/header-row-column-not-aligned-with-event-column Tue, 03 Jan 2012 20:56:32 +0100
once I order this will it come to be in a disc or do I download it straight from the internet?

]]>
http://forums.daypilot.org/Topic.aspx/1516/once-i-order-this- Anonymous http://forums.daypilot.org/Topic.aspx/1516/once-i-order-this- Tue, 03 Jan 2012 17:13:05 +0100
Half day cell Hello, I'm developing a simple schedule system (based on your hotel demo) for my own residence.
We usually mark the departure and the arrival date on the same day (one customer leaves at 10 a.m., other one arrives at 3 p.m. of the same day) and, on daypilot, this is archivable by allowing the schedule overlapping, but the view is on 2 different rows (level). Is there a way to create an "half-day-cell" so I can render 2 different schedules on the same row (level)?

Actual Render:
[ Mr. Smith ]
__________[ Mr. Johnes ]

What I'd like to have:
[ Mr. Smith ][Mr. Johnes ] (<--- ][ on the same day cell 50%-50%)

Thanks in advance for your response.
Regards
Daniele

]]>
http://forums.daypilot.org/Topic.aspx/1515/half-day-cell Daniele http://forums.daypilot.org/Topic.aspx/1515/half-day-cell Sat, 31 Dec 2011 04:04:50 +0100