Questions Tagged how-to
change color of the Insert/Update/Cancel links at the bottom of the popup
Answered: Please see my comment here: http://forums.daypilot.org/Topic.aspx/2371/how-to-make-autogenerateeditbutton-a-button-instead-of-a-li
Right click from mobile
Answered: With the upcoming 7.8 release you will be able to use: dp.eventTapAndHoldHandling = "ContextMenu"; This will activate the context menu for the "tap and hold" gesture. You will need to add custom drag...
Allow future date selection in DayPilotNavigator
Is there a way to enable quickly getting months/years ahead. I have seen other selectors where you can click on the Month name and it pops up a quick way to go several months ahead. How do I do this?
Event Moving
Answered: You need to handle the EventMove event on the client side:
<DayPilot:DayPilotCalendar ....
ClientObjectName="dpc"
EventMoveHandling="JavaScript"
EventMoveJavaScript="ask(e, newStart, newEn...
Fixed height for row (css override) ?
"Hi, with Daypilot Scheduler < 7.0 is it possible to adjust the row height manually (maybe with some css overrides) to a fixed height ? In my specific case I need to limit the rows displayed for a re...
Click event on resource in Scheduler
Answered: Got it to work with a contextMenu: dp.onBeforeResHeaderRender = function (args) { args.resource.contextMenu = new DayPilot.Menu({ items: [ { text: "Something", onclick: function () { alert("You click...
Actual dates
Hello, is there a way to include in the Event the actual dates? (Actual Started Date, and Actual Ended Date)?, and have a graphical view of the Planned vrs. Real?
How to hide week ends in Weekly view of DayPilot Calendar MVC?
I want to hide the Week ends(Saturday and Sunday) in the Weekly view of DayPilot Day/Week/Month Calendar MVC. I have hided them in Month view using ShowWeekEnds flag. But want to do it in Weekly view...
CellsPerHour equivalent
The web forms event calendar control has a CellsPerHour property to set the number of divisions between hours. I don't seems to be able to find a similar property in the MVC flavoured control. How ca...
Fixed Hour Column in DayPilot Calendar and Vertical Scrollbar Always Visible
I need the hour column of the calendar to be fixed (so it stays in place while I scroll right). As much as I would like to do it myself, I haven't got the time to dig through all the 6500 lines of co...
Select, Insert, Update and delete with my own methods
Hi, I have my own methods to delete, insert, these methods need x parameters to work, how properties of the DayPilotcalendar which I link to my methods?, i.e, to select would be DayPilotCalendar1.Dat...
Custom ContextMenu on CellRender DayPilotMonth
Answered: This is not yet implemented but I will take a look at it.
Enable specific hours in a day
Answered: In the scheduler, you can choose to display only selected fragments of a day using IncludeCell event: http://doc.daypilot.org/scheduler/hiding-time-columns/ It's also possible to create the timeline ...
Event Customization
When events change (ex: start time or name of event), how can I hi-light the event to show a different color from the other events so users know an event has changed? I looked at the documentation on...
How to make customized navigator
Answered: Please take a look at this guide: http://doc.daypilot.org/month/manual-date-switching/ You can bind any kind of navigation controls (plain links, drop-down list, etc.) using .commandCallBack() method...
OnEventMoved
Answered: It seems the lite version doe snot support this. I am now using the prod and it works,
onEventMoved preventDefault
Answered: Solved. The main problem that I used ajax updating of event that desynchronise move and moved events.
How to update through MySQLi
Answered: Can you try to download the sample PHP project from here? http://code.daypilot.org/17910/html5-event-calendar-open-source The downloads include a working PHP project with all the features working. Pl...
to define enddate property when using export method of scheduler control?
Answered: You can set the visible range using Days property. Just set is as needed before calling Export().
How to disable right-click menu when using frame
Answered: Hi.. It's solved by using javascript to disable the default context menu. Thank you.
Scheduler: drag event to new resource, but keep times
Answered: You can disable horizontal drag and drop event moving using BeforeEventRender event handler: http://doc.daypilot.org/scheduler/limit-event-moving/
different durationbar color ?
Answered: You can change the duration bar color using BeforeEventRender: http://doc.daypilot.org/calendar/event-customization/ This event is called for every event. If you request a calendar refresh after savi...
How to change the default holiday in schedular Control?
Answered: You can modify e.IsBusiness status for individual cells using BeforeCellRender event handler. See also: http://doc.daypilot.org/scheduler/cell-customization/
Add / Edit Events save to database
I downloaded DayPilot lite 2.0 and I am trying to integrate it our Visual Studio ASP.net 2.0 with c# project and SQL Server database to verify before we migate to Visual Studio 2012 in about 5 months...
Set dps.startDate and dps.days via javascript
Answered: You should call .update() after changing startDate or days. This is an example from the the navigator integration demo: http://javascript.daypilot.org/demo/scheduler/navigator.html See onTimeRangeSel...
How to prevent event dragging and resizing
Answered: You should set the .moveEnabled property on the DayPilot.Event.data object, not on DayPilot.Event directly:
var e = new DayPilot.Event({
start: "2014-03-25T00:00:00"),
end: "2014-03-25T12:00:...
Manual add menu item in DayPilotMenu
Answered: You can specify the menu items in the code behind using DayPilotMenu.MenuItems property:
protected void Page_Load(object sender, EventArgs e)
{
DayPilotMenu1.MenuItems.Clear();
// <DayPilo...
Context Menu for multiple selection in DayPilotMonth
Hi.. Is it possible to show Context Menu on the right click for multiple selection in DayPilotMonth? I have set for DayPilotCalendar, it works.. but not for DayPilotMonth.. Here the properties that I...
DatasourceID return as string vaule
Basically i used they following code to get the string in the cell field EventInfo ei = DayPilotCalendar1.SelectedEvents[0]; string evnt = ei.Text; But i would like to get the DatasourceID of the fie...