Questions Tagged how-to
Event assigned to duplicated resource (scheduler)
Answered: If you use the same resource id then it will be displayed in both rows.
Month.CellHeight
Answered: Please use MinCellHeight property instead: http://doc.daypilot.org/month/cell-height/ The DayPilot Month cell height is extended automatically to fit all the concurrent events.
How can I make appointments be staked vice side by side in a week view?
Answered: Hi Steve: 1. You can try fixed column width: http://doc.daypilot.org/calendar/fixed-column-width/ This would be a quick solution. You can specify the column width in pixels. A horizontal scrollbar wi...
How to display modal dialog after button click
Answered: If you mean DayPilot.Modal (http://code.daypilot.org/81367/daypilot-modal) and a generic ASP.NET button you can try this:
<asp:Button id="Button1" runat="server" OnClientClick="new DayPilot.Modal...
can DayPilot Pro Business Edition work with ASP.Net 2.0?
Answered: DayPilot is compiled with .NET 2.0 and you can use it on IIS 6 with .NET Framework 2.0. Everything should work. Just note that most of the tutorials at http://code.daypilot.org are built using Visual...
Is it possible to change hour height?
Answered: You can use the CellHeight property: http://doc.daypilot.org/calendar/cell-height/
Get visible time range (scheduler)
Answered: Sorry, didn't see this: http://api.daypilot.org/daypilot-scheduler-getviewport/ dps.getViewPort().start and dps.getViewPort().end is what I was looking for.
Reload single event from database
Answered: If you want to refresh the events it is better to use .events.list array instead of .events.add() method. Adding events one by one using .events.add() works too but it is slower (it refreshes the sch...
BC30456: 'EventDetail_ItemUpdated' is not a member of 'ASP.web_app_daypilot_aspx'.
Answered: ok found it in the tutorial in the Default.aspx.vb file, my bad, thanks. Eunice
Load Resource Tree from Database
Answered: You can use something like this: An example using DayPilot.request():
function loadResources() {
DayPilot.request("backend_resources.php", function(result) {
var data = eval("(" + result....
How can i change the start date and end date dynamically by user selection
Answered: CommandCallback
How to change PerformDataBinding for changing the text displayed in text for Calendar?
Answered: You can use BeforeEventRender event to modify the event HTML as needed.
protected void DayPilotCalendar1_BeforeEventRender(object sender, DayPilot.Web.Ui.Events.Calendar.BeforeEventRenderEventArgs ...
**Daypilot Month** set height some event
Answered: The event height in DayPilot Month can't be set individually. You can increase the event height using .eventHeight property (for all the events). Having custom height for individual events would prev...
How can i have 24 hour timeline on the Y-Axis and resource names on X-Axis
Answered: You will need to use the Calendar control switched to Resources mode: http://doc.daypilot.org/calendar/resources-view/ If you are going to display a lot of resources on the X axis of the calendar, yo...
cancel an onEventMoved or onEventResized
Answered: Found the answer: hope this helps other people save some time //This gets called when the user drops the event dp.onEventMove = function (args) { //args.e is the event object that is being moved //ar...
Navigation
Answered: You can switch dates using .commandCallBack() method: MVC View
<div class="note">
<a href="javascript:dp.commandCallBack('previous');">Previous</a> |
<a href="javascript:dp.commandCallBac...
month navigator - update to current date from next/previous link button
Answered: You can use .select() method of the navigator object on the client side: http://api.daypilot.org/daypilot-navigator-select/
Year View
Answered: Yes, there is a plan to add a year view based on the scheduler (http://doc.daypilot.org/scheduler). It will look like the timesheet mode (http://doc.daypilot.org/scheduler/timesheet/) but there will ...
Daypilot Scheduler Lite
Answered: You can try 1. to remove [assembly: AllowPartiallyTrustedCallers] from DayPilot/Source/Properties/Assembly.cs (and recompile DayPilot) or 2. to add [assembly: AllowPartiallyTrustedCallers] to your dl...
Minimize sources
Answered: It is minimized using ESC (ECMA Script Cruncher). You can find the instructions here: http://www.daypilot.org/how-to-compile-daypilot-pro-source.html The ESC download page is no longer available but ...
Change Calendar Gridline Color and Width
Answered: I've posted a short tutorial that demonstrates how to modify the CSS theme for the timetable tutorial: http://code.daypilot.org/39902/asp-net-timetable-with-custom-css-theme Instead of the _matrix cl...
Calendar for different users? (Users can only view/edit their own events)
Answered: This has to be done on several levels: 1. You can use the authentication system you already have in place to identify the current user. 2. Let's simplify the authorization rules (ACL) to general "rol...
How to call javaScript method from CallBack DayPilotCalendar1_EventClick
Answered: It depends on what you actually want to do (and it looks like #1 is what you are looking for): 1. If you only want to call a client-side method, use EventClickHandling="JavaScript" and specify your j...
Scheduler Gantt View Multiple Dates per Row
Answered: What you describe is basically the default "Resources" mode: http://doc.daypilot.org/scheduler/resources/ You need separate database tables for "Tasks" and "Actions". Task = has a name, displayed in ...
How to be locked some of the events from the database : Javascript
Answered: You can use 'moveDisabled' property:
var e = new DayPilot.Event({
start:new DayPilot.Date(),
end:(new DayPilot.Date()).addHours(5),
id: DayPilot.guid(),
text: "New Event",
resour...
Show Bubble or Tooltips on empty cell
Answered: This is not supported at the moment but it's a good idea for one of the future releases.
All Day Events in Month View
How do you implement 'all-day' events in the month view. If the client wants to show the event start time it is still showing for events that have a start and end time of 00:00:00. What is the correc...
How to move/scroll (horizontally) using drag in scheduler
Answered: This behavior is only supported on touch devices. Dragging in the grid will scroll the area. In order to start selecting a time range you need to hold the finger for a while.
How to listen or get the key event in scheduler e.g. delete key
Answered: The Scheduler doesn't contain any element that can get focus. You can detect the Delete key for the whole page using the following code:
<script type="text/javascript">
$(document).keyup(function ...