Questions Tagged how-to
How to block (and show) a complete day
Answered: If I understand it correctly you are asking for something slightly different than the original question: https://forums.daypilot.org/Topic.aspx/2944/how-to-block-and-show-a-complete-day Konrad would ...
How to swap the calendar btween days left and right
Answered: Unfortunately, using the swipe gesture to change the calendar view is not supported at the moment.
DataItem not available if ResourceCollection is filled manually
Answered: This change is now implemented in the latest DayPilot Pro for ASP.NET MVC build (8.3.5851). You can download it in the sandbox: http://mvc.daypilot.org/sandbox/ Any object passed using Resource.DataI...
Schedule doesn't update when use navigation
Answered: Sorry I'm got it. must be change the "Scale = TimeScale.Manual" to "Scale = TimeScale.Day"
How to get Date from Navigator using JavaScript and copy to textbox
Answered: 1. You can get the current selection using the following properties: * nav.selectionDay - the exact day that was clicked * nav.selectionStart - start of the selection * nav.selectionEnd - end of the ...
Scheduler Half-Hour Border Color
Answered: The easiest way would probably be to insert custom separators at the specified time points: https://doc.daypilot.org/scheduler/separators/
Combining events with the same name
Due to the recordset I am dealing with, I always have records with the same event next to each other. I can't explain it very well, but I do have an image of what I have and what I am trying to achie...
Get current cell in Context Menu
Answered: There is an internal JavaScript API that you can use (assuming ClientObjectName="dp"): Current mouse cursor position as date/time (DayPilot.Date object):
var date = dp.getDate(dp.coords.x, true);
...
Custom weekend days
Answered: The onBeforeCellRender applies the properties (business/non-business) to grid cells. The business status can be set for each cell separately and it's possible that cells in the same column will not h...
JavaScript Source from Pro Purchase
Answered: The JavaScript files in in the ASP.NET WebForms are not licensed for standalone usage - they can only be used within the DLL as embedded resources. If you prefer using the JavaScript version you can ...
how to use suport
Answered: You can ask your question here in the forum: https://forums.daypilot.org/question/new Or you can contact support directly: support@daypilot.org.
Error with attribut "cellgroupby" And "scale"
Answered: It looks like you are using the Lite (open-source) version that doesn't support these features. See also the "Availability" table at the bottom of the documentation pages: https://doc.daypilot.org/sc...
Prevent dragStart from removing list item
Answered: Oh, found another answer that seems to have answered this. The first parameter needs to be null, not that last parameter as indicated in the above link. onmousedown='return DayPilotCalendar.dragStart...
How to change cell color on current row
Answered: You can modify the cells on the fly using the cells API, e.g.
dp.rows.find("A").cells.all().html("A");
You can also add/remove CSS classes using .addClass() and removeClass(). See also: https://a...
Row Filter
Answered: Since build 2535 you can call
dp.rows.filter("filter");
before .init() to apply the filter. You can get the latest build in the sandbox: http://javascript.daypilot.org/sandbox/ Let me know if it ...
How do I disable TimeRangeSelection for a particular date (Ex sunday)
How do I disable TimeRangeSelection for a particular date (Ex sunday) Can i select particular time slots rather than all time slots? Is there any way I can call the daypiloyt modal window from a MVC ...
External Drag and Drop Event
How to check if user drop event out of scheduler for cancel. Because I want to remove css class form resource. Thank you so much.
Show "event" only as changed background color
Answered: If you want to set a color of the grid cells you can use OnBeforeEventRender event handler: https://doc.daypilot.org/scheduler/cell-customization/ Generating a special type of event with a custom col...
How do you delete an event?
Answered: The Lite edition doesn't support the built-in "delete" icon like the Pro version: https://doc.daypilot.org/calendar/event-deleting/ The best way would probably be to add a "Delete" button to the moda...
Asp Net MVC5
Answered: It's a propery of the Task class. You can set the value like this:
Tasks = new TaskCollection();
Task task = new Task("Task 1", "1", DateTime.Today, DateTime.Today.AddDays(5));
task.Complete = ...
Using multiple values in DataTextField
Answered: If you need to display data from multiple fields you can use BeforeEvenRender event handler to customize the event HTML: https://doc.daypilot.org/calendar/event-customization/
Change row color when event drag
Answered: You can highlight the original row using onEventMoving event handler. In the ASP.NET MVC you can set this event handler using EventMovingJavaScript property: https://doc.daypilot.org/scheduler/event-...
Multiple grouping per row (Sheduler)
Hello, we would like to buy your pro edition, but we would need another feature for the Scheduler, Is there a way to group multiple events inside a group? I found the "Concurrent Event Groups" (https...
add one more TextField
Answered: If you want to customize the event text using multiple fields of the data source you can use BeforeEventRender event handler: https://doc.daypilot.org/calendar/event-customization/
start hour in calendar display
Answered: You can using DayBeginsHour and DayEndsHour properties to control the start and end hour: https://doc.daypilot.org/calendar/overnight-scheduling/
timeRangeSelectingStartEnd - end day minus 1
Dear All! When I select, let's say, Nov. 10.-15 these 5 days are highlighted. But the bubbles (or however you call it - I can format them via timeRangeSelectingStartEndFormat) shows on the right of m...
MVC Popup Window - Stop closing when clicking out of window
Answered: With the latest version of DayPilot.Modal (2.6) you can use the following code:
modal.onClose = function(args) {
if (args.backgroundClick) {
args.preventDefault();
}
};
See also: http...
display calendar event as list View
Answered: I recommend using standard ASP.NET controls - such as a ListView (https://msdn.microsoft.com/en-us/library/bb398790.aspx). DayPilot doesn't include any control for displaying the calendar data in tab...
Set timerange to 8 am until 3am the next day
Answered: Rik, I didn't check the actual logic of your sample but the result should be set using args.cell.visible property instead of the return statement. See also: https://api.daypilot.org/daypilot-schedule...
DayPilot.Scheduler.makeDraggable Not supported in Angular2?
Answered: and here it is:
import { Directive, ElementRef, Input, AfterViewInit } from '@angular/core';
import { DayPilot } from 'daypilot-pro-angular';
@Directive({ selector: '[makeDraggable]' })
expo...