Questions Tagged
Space between two events in same resource
Answered: You need to modify the event CSS. An example for the default CSS theme (theme="scheduler_default"):
.scheduler_default_event_inner {
bottom: 2px !important;
}
Daypilot height 100%
Answered: If you want to set the height to 100% of the parent element, you should use this:
dp.heightSpec = "Parent100Pct";
Please note that this requires the parent element height to be set explicitly - s...
json date not converting to daypilot date format
I am rendering all daypilot events by ajax from server(the result is JSON) when i am trying to push it shows invalid time zone. For this i need to iterate all events convert to Daypilot date ,is ther...
Leap Year Issue
Answered: When changing the StartDate and Days properties you can use DayPilot.Web.Mvc.Utils.Year.Days() method to get the number of days for the given year. Example for switching to the following year:
Star...
How to add text field in cell ?
Answered: Technically, yes. But it's not recommended for several reasons: 1. You should keep the cell HTML as small as possible. Adding a lot of content will slow down the Scheduler. 2. The cells are redrawn v...
Scheduler - auto width cells
Answered: This issue should be fixed now in the latest release (8.1.1821): http://javascript.daypilot.org/daypilot-pro-for-javascript-8-1-sp2/ Let me know if the problem persists.
Recurring Event Exceptions
Here is the scenario. We use this for instructors to schedule their classes. Sometimes a different instructor has to fill in for someone. When that happens they edit that week's class and put their o...
DayPilot Compatibility with .Net 4.51
I'm getting and error since upgrading my app to .Net 4.51 when trying to create DayPilot. The error says I'm missing DateTime.cs. Is DayPilot compatible with .Net 4.51? Do you have any information ab...
Navigator highlights previous month while toggling between week and month view
Answered: You can change the navigator selection using .select() method:
var nav = new DayPilot.Navigator("nav");
// ...
nav.select(new DayPilot.Date()); // selects today
Select time range will not be highlighted if only click the cell in Month Calendar
Hi, Seems in month calendar, if only click a cell (not drag before mouse up), it will be triggered from onTimeRangeSelected, but the UI is not highlighted. However, if drag over the cell a bit, the c...
Using DayPilot HTML5 Hotel Room Booking (JavaScript/PHP) in Codeiginiter MCV environment
Can you please explain how to apply HTML5 Hotel Room Booking (JavaScript/PHP) in Codeiginiter MCV environment, I need to loaded events from MySQL database thru model to controller in order to pass to...
Same event times (UDT) between calendar resource view and workweek view but they display at different local times.
I have a list of events that I share between a Resource view and a WorkWeek view. The daypilot dates of the events are UDT time as expected. When those events are displayed in the Resource view, they...
DayPilot.Switcher OnChange
How can I perform an action when thw switcher changes the current view? Is there something like OnChange event? Thanks
Update headerHtml in onBeforeCellRender
I use angularjs and monthly calendar. I try to update the headerHtml in beforeCellRender event. onBeforeCellRender: function(args) { if (args.cell.start.getDay() === 1) { // first day of month args.c...
In Gantt Chart, can I add task to a particular group?
Hi, I noticed that I can create a new task from the front end, as long as rowCreateHandling is "Enabled". What I would like to do is for the user to be able to add a task as a child of a particular G...
First Resource column not the Resource name
Hello, We're looking into using this tool for a customer. One thing I cannot figure out is how to add a column BEFORE the resource name. Every example I see the first column is the resource name. And...
How to disable the percentage that is displayed in the task box as text ("51%") in Gantt
Answered: You can override the task box text using BeforeTaskRender event handler: The following example will show the task text instead of the percentage:
void DayPilotGantt1_BeforeTaskRender(object sender,...
Modal dialog does not pop up when gantt is placed inside ajax update panel
I placed a gantt diagram inside an ajax update panel component from MS Visual Studio. An entry in context menu of a task should start a modal dialog. Action of this menu item is set to postback. But ...
Menu Child Menu Stuck Open
So, I have a child context menu. If I click on the parent menu item before the child is rendered, the parent menu goes away and the child menu is shown. I have no way to make the child menu go away w...
Hide ressource parent without children
Answered: How about this:
// ...
if (r.Children.Count > 0) {
DayPilotScheduler1.Resources.Add(r);
}
// ...
instead of:
DayPilotScheduler1.Resources.Add(r);
You can also filter the resources on ...
How to display bottom scroll bar in daypilot calendar
I am using daypilot calendar version 1.0 and asp.net 4.0. How to show bottom scroll bar in daypilot calendar.
How to show Horizontal Scroll bar in Day Pilot Calender
Hello Team , We are using Day Pilot Calendar version (5.8.1956.0) but there is no property for show horizontal scroll bar . So please let us know If we can show scroll bar horizontally or not ?. IF w...
$scope.scheduler is undefined
Answered: Then you should be able to start with this code and extend it step-by-step until you have all you need or until it stops working. If it stops working please check the last thing you added.
How to navigate to a special task in Gantt?
Answered: The latest sandbox build (8.1.3450) now supports ScrollToTask(id) method. It lets you set the vertical scrollbar position using the specifeed task id. It works during the initial page load and also d...
Headers with different height
Hello, Is it possible to configure a different height for each header? For example I have 3 headers, Month, Day and Hours, and I want to have Month 40px height and Day, Hours height with a height of ...
How to slide-up/slide-down the sub-titles when 'scheduler_default_tree_image_collapse'/'scheduler_default_tree_image_expand' is clicked ?
Answered: Unfortunately, sliding animation during expanding and collapsing the tree nodes is not supported at the moment. There is no way to add it using custom code.
Display only few hours
Answered: You can use a custom timeline: http://doc.daypilot.org/scheduler/timeline/ Or hide non-business hours: http://doc.daypilot.org/scheduler/hiding-non-business-hours/
No recurrent events in gantt view ?
Answered: The built-in recurrence support in the other controls (Calendar, Month, Scheduler) allows you to store the recurring events as a single event (with a rule assigned to it). This rule will be expanded ...
Does the DayPilot Scheduler respect WCAG 2.0?
Answered: Unfortunately, there are no guidelines on making the Scheduler compliant with WCAG 2.0 at the moment. However, you should be able to meet most of the requirements by using appropriate configuration (...