Hello,
I am using the Scheduler, and I need to go quite far in its usage.
The events I need to display in the Scheduler follow creation constraints that require me to have control over the creation form.
So, I naturally followed the guide to create a 'custom edit form' found here: https://github.com/telerik/blazor-ui/tree/master/scheduler/custom-edit-form. However, I am facing an issue where I am unable to retrieve the user's choice from the popup. (cf 2024-10-21-11h47_41.png)"
I implemented the JS hack on the double-click:
function clickSchedulerPromptButton(btnIndex) {
setTimeout(function () {
var buttons = document.querySelectorAll(".k-window-content .text-right button");
if (buttons && buttons.length >= btnIndex) {
var chosenButton = buttons[btnIndex];
chosenButton.click();
}
}, 50);
}
This allows me to handle the choice in my own edit popup (which, by the way, reduces the number of windows opened, improving the user experience), and it works.
However, if the Scheduler is configured with AllowUpdate = true, another way to modify a series becomes available: resizing appointments with the mouse. In this specific case, the EditItem event is not triggered; instead, the OnUpdate event is triggered, but only after the choice popup has been displayed. Since it's not possible to retrieve the user's choice, the entire series is always modified (and the event arguments do not carry the targeted occurrence date anyway).
I believe this is a BUG, as it makes the Scheduler difficult to use in its current state.
Can you help me to solve this bug :
- Trigger the EditItem event, even during a drag-and-drop of an appointment.
- Add the user's choice information in the arguments of SchedulerUpdateEventArgs and SchedulerEditEventArgs.
- Avoid displaying this choice popup (which is unnecessary); it should be integrated into the appointment form.
- Include information related to the targeted occurrence in the event arguments (currently, only SchedulerEditEventArgs provides this detail)."
Thank you in advance for your response, which I hope will be constructive.