Our powerful JS Calendar component


Post by Nagesh@Apoorva.com »

Hi team, I tried disabling the resource field using resourceField.disabled = true;. When we edit an event this prevents me from adding new resources but can remove existing ones for that event. How to prevent that from happening


Post by tasnim »

Hi,

What version are you using?
It seems to be working with the latest version

Screenshot 2023-05-19 161536.png
Screenshot 2023-05-19 161536.png (29.75 KiB) Viewed 174 times

Tested here https://bryntum.com/products/calendar/examples/basic/


Post by Nagesh@Apoorva.com »

Hi Tasnim,
For resources, we were using multiple selections, not ordinary combo
Version- 4.3.9


Post by tasnim »

Hi,

We'd recommend you upgrade to the latest version. So you'll get it fixed
I also used the multiple selections

chrome_3jAKF8w3sp.gif
chrome_3jAKF8w3sp.gif (1.82 MiB) Viewed 165 times

Post by Nagesh@Apoorva.com »

Okay, Thank you. Is it possible to clear the resource field before opening the event editor


Post by tasnim »

You could use https://bryntum.com/products/calendar/docs/api/Scheduler/feature/EventEdit#event-beforeEventEditShow event to achieve that

calendar.on('beforeEventEditShow', e => {
    e.editor.widgetMap.resourceField.value = null;
})

Post Reply