Active Questions
How can i add image in in second row or in first row?
Answered: You can use onBeforeRowHeaderRender event to insert custom HTML and/or active areas: https://doc.daypilot.org/scheduler/row-header-customization/
Day pilot dragdrop insert 2 rows. (angular)
Answered: This should be fixed now in the latest sandbox build (2020.3.4657). Please let me know if the problem persists.
Drag and Drop issue on second time
I have dragged/drop an event first time after page load and it works fine but when the event is dragged/dropped second time then it gives me an error "Cannot read property ja of null". When i refresh...
Set event in multiple days
Answered: I recommend checking the date values. The Scheduler doesn't shorten events and the start and and date/time will correspond to the calculated timeline position. You can see that multi-day events are d...
How to show results for half an hour in timeHeaders
Answered: Please see this grouping option:
groupBy: "Cell"
https://doc.daypilot.org/scheduler/time-header-groups/
How can add search on second row or child row?
Answered: The rule that determines which rows will be displayed when a row filter is applied is implemented in onRowFilter event handler. You'll need to extend it to include text of the additional rows as well...
Changing scheduler settings in CSS
Answered: You need to use more specific selectors, e.g.
#dp .scheduler_default_matrix_vertical_line,
#dp .scheduler_default_matrix_horizontal_line {
background-color: #000000;
}
or add "!important"...
Max Width for rowHeaderWidthAutoFit
It would be great, if a maximum width setting for rowHeaderWidthAutoFit could be implemented. Should be trivial to implement in _autoRowHeaderWidth but I did not want to patch it to stay with the sta...
Delete events based on ids stored in an array
Answered: array.forEach(function(id) {
dp.events.remove(id);
});
Click Event/Active Areas not working properly with touch screens
Answered: On touch devices, the active areas with visibility: "Hover" won't be displayed as there is no hover event. In some edge cases, the mobile browsers will fire mousemove event which is used to detect th...
Resource label vertical alignment on concurrent event
Answered: Unfortunately, this is not possible at the moment. You can modify the CSS and show the row header title at the top of the cell (the middle position may not work well for large heights).
How to Hide Context Menu Item
Answered: You can do this in onShow event handler - it's called before the menu is displayed and you can use it to modify the context menu items. You can find an example here: https://api.daypilot.org/daypilot...
How to get resource name instead of ID
Answered: You can get the row object (DayPilot.Row) using rows.find():
dp.onEventMove = function(args) {
var row = dp.rows.find(args.newResource);
// ...
};
It's also possible to use onEventMoving i...
Allow to do a Rectangle selection on Row without snapping to the grid
Answered: This option is now available through snapToGridRectangleSelecting property in the latest sandbox build (2020.3.4604): https://release.daypilot.org/changes/js/
rowsfrozen last row disappear
Answered: This issue should be fixed now in the latest sandbox build (2020.3.4603): https://release.daypilot.org/changes/js/ Let me know if the problem persists.
ScrollToResourse() in dynamic event rendering
Answered: It looks like the onAfterRender event handler wasn't fired properly if args.clearEvents was set to true in onScroll (and that is the default value). It should be fixed now in the latest sandbox build...
Version 2020.3.4594 daypilot-core.d.ts loadingText is a number
Answered: Hi Ruud, Thanks for reporting the issue - it's fixed now in the latest sandbox build and it will be included in the next release: https://release.daypilot.org/changes/js/
Edit appointment screen not showing all fields
Answered: It looks like there is a problem with SQL on line 51 (appointment_edit.php) which works in SQLite but not in MySQL:
foreach ($db->query('SELECT * FROM [doctor] ORDER BY [doctor_name]') as $item) {
...
form modal doesn't open
Answered: This seems to work fine:
var form = [
{name: "Move From", id: "fromDate", dateFormat: "MMMM d, yyyy"},
{name: "Move To", id: "toDate", dateFormat: "MMMM d, yyyy"}
];
DayPilot.Modal.form(f...
Daypilot Scheduler - Bubble shown on different page
Answered: There is a static DayPilot.Bubble.hide() method that will hide the current bubble immediately: https://api.daypilot.org/daypilot-bubble-hide/