Questions Tagged how-to
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...
How to preserve calendar data on page?
Actually when I select calendar date then calendar then calender data did not show on page. Pls help to solve this.
How can I show calendar sunday to saturday in daypilot month calendar?
Answered: Use WeekStarts="Sunday". See also: http://doc.daypilot.org/month/first-day-of-week/
How to move an event programmatically?
Answered: If you modify the event in .events.list and call update() it should be updated properly (as all events will be redrawn as part of the update). See also: http://api.daypilot.org/daypilot-scheduler-upd...
Passing Data to OnEventMove with e.Data
Answered: e.Data holds custom data sent from the client side when invoking the EventMove event manually using .eventMoveCallBack(). See also: http://api.daypilot.org/daypilot-scheduler-eventmovecallback/ If yo...
How to set color multiple selection in DayPilot Month
Answered: You can use CellSelectColor property to specify custom cell selection color. This is one of the few elements that can't be styled using the CSS theme. It will be added to the themes soon.
Export WYSIWYG
Answered: For true WYSIWYG export including CSS you need to use a browser. Take a look at PhantomJS: http://phantomjs.org/ It works very well but it's a standalone process (no native .NET support).