Hi Syncfusion team,
I'm using @syncfusion/[email protected] and ran into an issue with WBSCode.
When I add a new task (either using the Add button on the toolbar or via addRecord()), the WBSCode is null inside the actionComplete event (when requestType === 'add').
But after the Gantt is fully rendered, the WBS code appears correctly in the UI (e.g., "1.1", "1.2").
So it seems like the WBSCode is not calculated yet at the moment actionComplete fires?
My settings:
enableWBS: true is enabled
- No mapping for WBSCode in
taskFields (I understand it's not required)
Example code:
actionComplete: (args) => {
if (args.requestType === 'add') {
console.log(args.data); // WBSCode is still null ❌
}
}
My questions:
- Is this expected behavior?
- If I want to get the generated WBSCode right after adding the task, is there another event or workaround I should use?
Thanks a lot for your support!