bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Updating task values in beforeSave event have not affect #10305

Open ghulamghousdev opened 1 week ago

ghulamghousdev commented 1 week ago

Forum post

When we create a new task, bryntum assigns it a GUI ID. However, if a user wants to delete that task, the backend does not recognize the GUI ID.

Therefore, when a new task is created, we need to retrieve the newly created task using its GUI ID and then update it with the backend ID.

also want to change some field values before saving data in the backend and Bryntum TaskStore.

this.taskboard.on('beforeSave', ({ source, editor, record, values }) => {
   // update newly created task values   
  // API call
  this.updateTaskRecord({ record, values });
});
[code]