https://bryntum.com/examples/scheduler/filtering/
scheduleMenu:{
items:{
addEvent:false,
clearLightHigh:{
text:'test'
}
}
},
https://bryntum.com/examples/scheduler/filtering/
scheduleMenu:{
items:{
addEvent:false,
clearLightHigh:{
text:'test'
}
}
},
Hi,
We have a request to quick selected all events of order when right-click on one event. So we have a scheduler-menu button for clear all selected events or clear filtered events.
Is there any way to cancel this default behavior?
We expect right-click events and selected events should be irrelevant.
To achieve this you have to listen to an event scheduleMenuItem
and you have to get the eventElement using getEelementFromEventRecord
.
Please check these :
https://bryntum.com/docs/scheduler/api/Scheduler/feature/ScheduleMenu#event-scheduleMenuItem
https://bryntum.com/docs/scheduler/api/Scheduler/view/mixin/SchedulerDom#function-getElementFromEventRecord
Here is how you can achieve it:
listeners: {
scheduleMenuItem({ resourceRecord }) {
const el = scheduler.getElementFromEventRecord(resourceRecord.events[0], resourceRecord);
setTimeout(() => {
el.classList.remove('b-sch-event-selected');
})
}
},
Best regards,
Tasnim
Sorry, my English is bad.
There is a schedule menu 'test'. When I click this button, there is a default behavior about selecting an event in the current row.
I think this behavior is wrong. Because
We have a request to quickly selected all events of order when right-click on one event. So we have a scheduler-menu button for clearing all selected events or clear filtered events.
When you right click, the Menu is focused. No event selection takes place.
When the menu hides, the grid cell is focused.
By default, focusing a grid cell will drop down into the grid cell and focus the first event it finds in there.
What application processing is this preventing you from implementing?