Support Forum
I want to get the data from add events of Store Curd. https://www.bryntum.com/docs/gantt/#Com ... #event-add
So how can i assign this event . to store and fire it when records are added.
So how can i assign this event . to store and fire it when records are added.
Hi
I don't want to assign resource at wbs level only at activity level but this gives error? am i going in the right direction or some other way we can implement it.
project.assignmentStore.on('beforeAdd', function (store) {
// console.log(store);
const taskType = store.records[0].event.type;
if (taskType === 'wbs') {
WidgetHelper.toast('You can not assign resource at wbs');
store.removeAll();
} else {
//console.log(store);
// this.AssignResource(store);
WidgetHelper.toast('Resource is Assign');
}
});
Hello,
You can check if a task is a parent using this property https://www.bryntum.com/docs/gantt/#Gan ... y-isParent
To prevent adding just need to return false from beforeAdd. See docs here: https://www.bryntum.com/docs/gantt/#Com ... -beforeAdd
Cheers,
Pavel
You can check if a task is a parent using this property https://www.bryntum.com/docs/gantt/#Gan ... y-isParent
To prevent adding just need to return false from beforeAdd. See docs here: https://www.bryntum.com/docs/gantt/#Com ... -beforeAdd
Cheers,
Pavel
Pavlo Miklashevych
Sr. Frontend Developer