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
We have a requirement to add field to store/model dynamically based on record data. Used Core.data.Model#function-addField-static api but it is not working. Provided below sample. Request to review and provide a sample on how to add/remove fields from store/model dynamically.
follow the instructions below and observe in console after calling addField api, new field is not added to model.fields list
ModelClass.fields is the block that defines fields at that level in the prototype chain, not the full set of fields available. For that, use gantt.taskStore.modelClass.allFields.
Forum post
Hi Team,
We have a requirement to add field to store/model dynamically based on record data. Used Core.data.Model#function-addField-static api but it is not working. Provided below sample. Request to review and provide a sample on how to add/remove fields from store/model dynamically.
follow the instructions below and observe in console after calling addField api, new field is not added to model.fields list
gantt.taskStore.modelClass.fields
customField