Page 1 of 1
[REACT] How to not remove task from grid when drag to the calendar?`
Posted: Mon Mar 20, 2023 4:45 pm
by kevinlee
The default Bryntum calendar removes the task when it drag to the calendar.
But, I want to remain a task when I drag it to the calendar.
Is there anybody who has faced this issue before?
I need it urgently!!!
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Mon Mar 20, 2023 8:01 pm
by marcio
Hey kevinlee,
Could you please provide more context about your issue? Are you able to replicate that in one of our demos? https://bryntum.com/products/calendar/examples/basic/
Also, you can check the guidelines about how to assemble an example for sharing with us and improve support quality here - https://www.bryntum.com/forum/viewtopic.php?f=1&t=772
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Mon Mar 20, 2023 8:17 pm
by kevinlee
Could you tell me how can I modify CalendarConfig.js file.?
Any other features.?
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Mon Mar 20, 2023 8:51 pm
by marcio
Hey,
Sorry, but I didn't get it what you want to achieve, and why do you need to modify CalendarConfig.js file??
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Mon Mar 20, 2023 8:56 pm
by kevinlee
So how can I drag unscheduled task from grid to my calendar not removing unscheduled tasks.
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Tue Mar 21, 2023 12:00 pm
by Animal
This behaviour should really be configurable, but you can veto the remove.
Add a listener
to the beforeRemove
event on that Grid's store
which returns false
. That will prevent the remove from going ahead.
Re: [REACT] How to not remove task from grid when drag to the calendar?`
Posted: Tue Mar 21, 2023 12:25 pm
by Animal