Our state of the art Gantt chart


Post by tikhonov.a.p »

Good afternoon. Tell me where you can read about how to properly configure components that use storage.

React

For example:

  1. Created a new field. Added it to TaskEditor, how to correctly pass store to thie new Field, which is in Gantt

Post by alex.l »

Hi tikhonov.a.p,

Created a new field.

Did you mean change data model at runtime?

All the best,
Alex


Post by tikhonov.a.p »

alex.l wrote: Fri May 27, 2022 12:25 pm

Hi tikhonov.a.p,

Created a new field.

Did you mean change data model at runtime?

No, for example:

Create class TaskCategoryField extend from Combo
Values for combo need pick from TaskCategoryStore.

and use this class in TaskEditor in GeneralTab

At some point in time, I have to get the real Store from project gantt. But I don't quite understand when is the right time to do it.


Post by alex.l »

To set store in Combo, please use https://bryntum.com/docs/gantt/api/Core/widget/Combo#property-store
To customize fields in TaskEditor, check this guide https://bryntum.com/docs/gantt/guide/Gantt/customization/taskedit
This part is about using custom field https://bryntum.com/docs/gantt/guide/Gantt/customization/taskedit#customizing-the-tabs-and-the-fields
You also can use store from the project using same property (combo.store). There are many different ways to use same store for project and for combo, for example you could create an instance of that store and set the instance to project and to combo, or you can set the store to combo in https://bryntum.com/docs/gantt/api/SchedulerPro/feature/TaskEdit#event-beforeTaskEdit
In case you will be needed in data filtering for that store, better to make chained store for combo https://bryntum.com/docs/gantt/api/Core/data/mixin/StoreChained
In that case when you filter data, the filter won't be applied to project as well.

All the best,
Alex


Post Reply