All Questions

Get current cell in Context Menu

Answered: There is an internal JavaScript API that you can use (assuming ClientObjectName="dp"): Current mouse cursor position as date/time (DayPilot.Date object): var date = dp.getDate(dp.coords.x, true); Sta...

Event Text Color on Export

Answered: On the client side, you should be able to change the font color using args.fontColor: dp.onBeforeEventRender = function(args) { args.fontColor = "red"; }; See also: https://api.daypilot.org/daypilot-...

Custom weekend days

Answered: The onBeforeCellRender applies the properties (business/non-business) to grid cells. The business status can be set for each cell separately and it's possible that cells in the same column will not h...

JavaScript Source from Pro Purchase

Answered: The JavaScript files in in the ASP.NET WebForms are not licensed for standalone usage - they can only be used within the DLL as embedded resources. If you prefer using the JavaScript version you can ...

how to use suport

Answered: You can ask your question here in the forum: https://forums.daypilot.org/question/new Or you can contact support directly: support@daypilot.org.

Somebody please prevent this error

Answered: 1. If you want to use this event handler to customize the Navigator cells you need to add the method to the code behind: protected void DayPilotNavigator1_OnBeforeCellRender(object sender, BeforeCell...

Enable saturday and sunday on ShowNonBusiness=false

Answered: The latest build (8.3.3548) introduces BusinessWeekends property which you can use to set the behavior (the default value is false): <DayPilot:DayPilotScheduler ... BusinessWeekends="true" /> You can...

Prevent drag event

Answered: > Is there a javascript function (or postback event) that I can use for this feature? EventMoving event ( https://doc.daypilot.org/scheduler/event-moving-customization/ ) is a good way to implement i...

Prevent dragStart from removing list item

Answered: Oh, found another answer that seems to have answered this. The first parameter needs to be null, not that last parameter as indicated in the above link. onmousedown='return DayPilotCalendar.dragStart...

How to change cell color on current row

Answered: You can modify the cells on the fly using the cells API, e.g. dp.rows.find("A").cells.all().html("A"); You can also add/remove CSS classes using .addClass() and removeClass(). See also: https://api.d...

Row Filter

Answered: Since build 2535 you can call dp.rows.filter("filter"); before .init() to apply the filter. You can get the latest build in the sandbox: http://javascript.daypilot.org/sandbox/ Let me know if it does...

RowHeaderColumn change after EventResize

Answered: By default, events are not stored anywhere so you need to reload them (use DataSource and DataBind just like in Page_Load): Public Sub dpCalendar_EventResize(sender As Object, e As DayPilot.Web.Ui.Ev...

External Drag and Drop Event

How to check if user drop event out of scheduler for cancel. Because I want to remove css class form resource. Thank you so much.

Show "event" only as changed background color

Answered: If you want to set a color of the grid cells you can use OnBeforeEventRender event handler: https://doc.daypilot.org/scheduler/cell-customization/ Generating a special type of event with a custom col...

Asp Net MVC5

Answered: It's a propery of the Task class. You can set the value like this: Tasks = new TaskCollection(); Task task = new Task("Task 1", "1", DateTime.Today, DateTime.Today.AddDays(5)); task.Complete = 50; //...

Using multiple values in DataTextField

Answered: If you need to display data from multiple fields you can use BeforeEvenRender event handler to customize the event HTML: https://doc.daypilot.org/calendar/event-customization/

Change row color when event drag

Answered: You can highlight the original row using onEventMoving event handler. In the ASP.NET MVC you can set this event handler using EventMovingJavaScript property: https://doc.daypilot.org/scheduler/event-...

add one more TextField

Answered: If you want to customize the event text using multiple fields of the data source you can use BeforeEventRender event handler: https://doc.daypilot.org/calendar/event-customization/

start hour in calendar display

Answered: You can using DayBeginsHour and DayEndsHour properties to control the start and end hour: https://doc.daypilot.org/calendar/overnight-scheduling/