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

Disabled cell still working if my event is longer on the right than disabled cells

Asked by Catalin
3 years ago.

I'm using the latest version of daypilot scheduler for webforms.
my problem is that if I disable 2 cells on each resource say from 6 to 8 then if my event that is 3 hours long is dragged over this cells from the left the cells become red as aspected and can't drop it but if I continue moving until my event exceeds the 2 disabled cells say my event is now from 6 to 9 then it allows me to drop the event.
Its enogh for the event to be longer on the right that it allows me to drop it.

I've tryied to reproduce the same thing on the demo solution but there it's working fine as aspected but not on my project.

How can I debug this?

Answer posted by Dan Letecky [DayPilot]
3 years ago.

You should check if you really disable the correct cells. The background color needs to be set separately so it's possible that you didn't disable all the colored cells. It's unlikely that the Scheduler will allow dropping the event on disabled cells.

If you believe that this is a DayPilot bug I'd need a sample that reproduces the issue.

Comment posted by Catalin
3 years ago.

the cells are disabled becouse if I move the event from left to right they are all disabled but when the event exceeds the disabled cells (only on the right as shown in the above screenshot) then I can drop the event.
It should be nice to have something to debug even from the browser console to see if there is a conflict or something that I can't see.
On the demo solution it works fine but everyone is using Daypilot in own custom projects and this may lead to conflicts that the developer can't see and should be nice to call some js function or something that could help us debug where the conflict comes from.

Comment posted by Dan Letecky [DayPilot]
3 years ago.

If you use libraries that modify built-in objects and/or their prototypes, like prototype.js, pretty much anything can happen. Try to use libraries that don't do that because it can cause conflicts with other libraries.

I recommend removing all other libraries temporarily to see if the problem disappears. Then try re-adding them one-by-one to see which one is causing the problem.

Comment posted by Catalin
3 years ago.

thanks a lot, I solved as you mentioned..removed one by one every js and found that even here prototype.js was the fault.
The "some" function was the problem. Since I need prototype I just renamed the function and the references to it and solved for now every bug.

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