search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How validate if current cell has Events (Scheduler)?

Asked by Ivan Estrada
9 months ago.

Good day!

This feature exist for Calendar for Asp as IsThereEvent();
There's something similar for scheduler javascript.

Another way is loop my event array and validate the 'Start' property, but I want to know if there is already any function for this.

Grettings from Mexico

Answer posted by Dan Letecky [DayPilot]
9 months ago.

In the JavaScript version, you can use the following methods:

1. To check a time range (for all resources), use the events.forRange() method:

The following tutorial uses this method to display an availability chart:

2. To check a specific cell, use the method:

Comment posted by Ivan Estrada
9 months ago.

Thanks Dan! it works perfectly

But for the current row I can't, i use selection.get()

dp.onTimeRangeSelected = function (args) {

var events = dp.rows.selection.get().events.forRange("2021-09-10T00:00:00");


I like add a event if the current cell is empty.

Thanks in advance!!!

Comment posted by Dan Letecky [DayPilot]
9 months ago.


If you just want to disable event overlaps you can use the allowEventOverlap property (

dp.allowEventOverlap = false;

To find existing events for the current selection in onTimeRangeSelected you can use the following code:

dp.onTimeRangeSelected = function (args) {
  var row = dp.rows.find(args.resource);
  var events =, args.end);
  if (events.length > 0) {
    console.log("existing events found");
Comment posted by Ivan Estrada
9 months ago.


allowEventOverlap has worked for me, but with the second option I can customize it more.

That you have an excellent day!
Thanks a lot!!!

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.