I am using the eventDragSelect and eventDragCreate in a scheduler, but since they are not allowed to be used at the same time, I tried to turn on/off when the other is on/off, with the indicator of keypress of Control. If user clicks control before dragging mouse, then the event selection is turned on, as soon as ctrl key is released, the event create is reactivated. I was able to do it successfully by doing this code.
the only issue is when I tried to disable the eventdragselection in the keyup event, it won't disable. it still has the selection rectangle and still highlights the events in the scheduler that was selected. How to disable it please?
which I used and is not working.
I have tried to disable all the things I could possibly disable, but still the selector rectangle appears on eventDragCreate.
Okay, I will try the snippet and see what will happen. thanks
I tried the snippet, but issue still exists. My issue is not initializing the events, it is the DISABLING of the eventDragSelection after it is enabled. The code below and codes given in the documentation as well as replies here on how to disable it doesn't work.
as per my image posted above, it still has drag rectangle showing and still highlights the events in the scheduler even though the line to disable it was executed. The evencreatedrag turns on and off fine on control key events. eventDragSelect is the problematic one, it turns on but never turns off no matter what I do, so I ended up dragging in the scheduler with an event pop up as well as selection rectangle like the img in my prev post.
steps to replicate:
do not click control key, just drag a line in the scheduler - working ok, as this will create an event and a pop up will show.
click control + drag a line in the scheduler - working ok, as this will activate the selection mode and disable the eventDragCreate, hence, will not show an event pop up, but instead will highlight events within the rectangle produced upon dragging.
release control key and do step #1, this is where the issue is. It should only show create event pop up and should already disabled the eventDragSelect, but that is not what happens, instead they are both showing.
Last edited by ff4_dev on Thu Jul 30, 2020 9:14 am, edited 1 time in total.
Please try snippet on our scheduler angular filtering demo. I have tried it there and didn't see any issues disabling drag selection. If you can reproduce your problem on filtering demo with snippet applied, please provide steps for us to reproduce locally.
I am at my wit's end here, more than 2 days and still not able to solve this issue. I have done every possible ways to disable it to no avail. I have tried all the snippets given here with no luck, but I have found out that my other team mate was not able to replicate my issue, the eventDragSelection is disabled on her part using my code (which I also pasted here), the main difference is I am using windows while she is using MAC. My other team mate is using windows too and we both are able to replicate the issue -- that eventDragSelection is not disabling. Not sure if that is the case here. Can you please confirm that those who answered here that it is (or my code) is working fine is you are also using windows and not mac? thanks
I'm using windows too and I cannot see the problem. I'm attaching angular filtering demo which allows to switch features on Ctrl key and doesn't leave any extra elements behind. Please try it locally.
Also, are you using touch screen device?
saying Property 'schedulerInstance' does not exist on type 'SchedulerComponent'
I've attached here saying schedulerengine used to be now what is called schedulerInstance
so we use this.scheduler.schedulerEngine;
Does that matter? I am using lower version, can you please check version Bryntum Scheduler 3.1.2?
I've done the solution but still exists, it's actually not even showing the create drag event, always on selection mode, even if I don't press control.