Hi, I need to validate the drag&drop of records based on complexe validation rules that depend on the other records of the resource to whom the user is about to drop. Moreover, there are informations related to the records that I also need to take into account.
So in the eventDrag and eventResize, I need to have access to these information in order to evaluate and return Valid
eventDrag : {
validatorFn({ draggedRecords, newResource }) {
// draggedReccord may overlap under certain conditions depending on
// 1. other existing records for this newResource
// 2. some record properties such as the various sub-tasks, their startDate and endDate
return {
valid : ,
message :
};
Using this demo as a base https://www.bryntum.com/examples/examples-scheduler/validation/, how can I store the event information after I've fetched them from database ? Is there a free general purpose field that I can use to pass data to the draggedReccord ? Some question for the above newResource, how can I access all events in the date range of draggedRecors for this resource ?