Questions Tagged javascript
Pass additional data to makeDraggable
Answered: Build 1736 now copies all properties of the makeDraggable parameter (except of "duration" and "element") to the newly created DayPilot.Event.data property (which is accessible in onBeforeEventRender ...
Cannot get Id of the moved event in onEventMoved
Answered: Found it. There is a data object So args.e.data.id is the right property.
Is it possible to have multple resource/row headers width different height ?
Answered: Unfortunately it's not implemented at this moment.
Filter in columns
Answered: Since build 8.0.1545 it's now possible to specify custom row data (tags) and use them in onRowFilter: Specifying custom row data (tags):
dp.resources = [
{ name: "Room A", id: "A"},
// ...
...
Scheduler looses scroll position
Answered: It looks like gets reset right after the animation starts. It happens with plain div with "overflow:auto" as well: http://jsfiddle.net/JPEaa/344/ Probably the best solution would be to hook the minim...
TimeFormat recognizion doesn't seem to work perfectly in the calendar
Answered: The Swedish locale is defined like this:
DayPilot.Locale.register(new DayPilot.Locale('sv-se',
{
'dayNames':['söndag','måndag','tisdag','onsdag','torsdag','fredag','lördag'],'dayNamesShort':['...
Using SQL with DayPilot
Answered: Take a look at the following tutorial: http://code.daypilot.org/17910/html5-event-calendar-open-source It uses the Lite version to show how to load data and handle events using a very light-weight se...
How to display datepattern year with only two numbers ?
Answered: It's now supported in the latest sandbox build (8.0.1538): http://javascript.daypilot.org/sandbox/
Scheduler: edit row width
Answered: No, the grid of the "days". The Feature of the row-header-width is perfect. I can Change it with the mousecursor. Exactly the same Feature for the calendar-days would be cool!
how to show contextMenu when right-click on timeRange
Answered: You need to specify the context menu using .contextMenuSelection:
dpc.contextMenuSelection = new DayPilot.Menu([
{text: "New appointment", onclick: function (args) {
var ...
Day pilot event selection on right-click and double-click events
Hi, I'm working on the Day pilot Pro Javascript -v1531. When the event right-clicked or double-clicked the event should get selected and it is not doing now. Please help me to achieve this.
Calendar OnEventSelected() event doesn't change the back color of event
Hello, I'm working on the daypilot event calendar javascript pro - v1531. I have 2 events in my calendar. The first event had some back ground color and the second event had default color. When i sel...
How to unselect a row
Answered: You can clear the selection using rows.selection.clear():
dps.rows.selection.clear();
Filtering on multiple columns
Hi, I've been trying to find a way to do filtering (same as described here): http://javascript.daypilot.org/demo/scheduler/rowfiltering.html) but on different resource row columns (same as here): htt...
Feature Request:How to reorder/resize the resource columns- Event calender - Daypilot pro javascript
Couple of weeks back, i have raised a question regarding resize/reorder of resource columns and 'Dan Letecky' requested for the sponsoring the feature. http://forums.daypilot.org/Topic.aspx/2580/how-...
Daypilot scheduler crashes when dragging and reloading
Hi! When an Event is in dragging-mode, and the auto-reload (with Event reloading) is firering, daypilot crashes
Event calendar: adjacent events falsely treated as overlapping
In the event calendar view, Daypilot Lite treats two events as overlapping if the end time of one of them is the same as the start day of the other. Therefore, neither of them takes the full width of...
HTML Application
Hello, Is there a way to embed DayPilot Scheduler in an HTML Application (.hta file) ? I've tried this little code but no way: alertbox #1 and #2 never fired, and nothing shown (path to library is ok...
Expand specific resource from resource tree.
I have resource tree which has 2 levels. I want to expand only specific resource based on condition and others are collapse. how to do?
How to clear events?
Answered: Found a workaround: dp.events.all().each(function(e) { dp.events.remove(e); });
IE11, Win8.1 - extrem slow reactions
Answered: Loading less Events should be a good Thing. Now i am getting back about 20 Events. And the CPU is "only" going up to 6% when reloading. And when Scrolling at this Moment the Scheduler hangs for a sho...
Prevent resetting to top of scheduler after saving?
Answered: In most cases, it should not reset (at least it is not reset explicitly). However, you can save the vertical scrollbar position before the AJAX call using getScrollY() and set it to the same value af...
Row Filtering: problem with child-resources
Answered: This is now fixed in build 8.0.1518. The child nodes that match the filter will be visible including their parents. http://javascript.daypilot.org/sandbox/scheduler/rowfiltering.html
Parrent100Pct Div Resize
Answered: You can reset the dimensions by calling .show(): http://api.daypilot.org/daypilot-scheduler-show/
Parents-Resources on top level not expanded automatically
i am loading the grouped resources and setting "expanded = true" to all resources. But on the top-level resources there is no effect. I can expand it with a click. But not with the option true/false?!
Resources with no ability to book Events on
I have many Resources in Groups. The "Parent"-Resources shouldnt be able to book events on. And the backcolor of this rows may dark (or something like that). And if the user drags over thuch a row th...
Is there a way to show other data than the actual date in the header?
I'm thinking about using this for a room booking scheduler, but rather than showing multiple days horizontally, I would like to only show a single specific day with all the available rooms and the se...
Month, StartDate, and Angular
It doesn't appear that setting $scope.config.startDate in the controller does not automatically refresh the calendar like it does with scheduler. How do I dynamically reset the start date from a cont...
Adding resources breaks cellWidthSpec="Auto"
I have a DayPilot scheduler on my app. When I set up the component originally, it is set with cellWidthSpec="Auto" and everything is set fine. I later retrieve my resources via Ajax and set them into...