Our state of the art Gantt chart
Hi Bryntum Team,
We would like to hide /show certain records from the Gantt chart. When using the task store's filter, we noticed that the records are not available to our internal processing logic as well. This is documented here https://bryntum.com/products/grid/docs/guide/Grid/data/storebasics#filtering
Is there a way to only visually hide them in the Gantt? Please advise what the correct approach would be in your opinion... Css magic would obviously work but is not a very proficient approach I would assume.
Best,
Andreas
Hi Márcio,
Just to confirm here: Would that hide the entire row (intended) or just the task bar?
Best,
Andreas
Hey Márcio,
Bar is close, but not enough I'm afraid. Thanks for bearing with me!
We're extending your TaskModel with our own. There, we override methods, e.g. for start / end date calculation.
However, the when we access this.children on a filtered store, it returns the the subset, not all.
Any idea o how to get the unfiltered children's list on an overidden TaskModel? Using allRecords with a filter?
Best,
Andreas
Hey Márcio,
I just found this['childEvents'] on the TaskModel which return unfiltered children. Is that also feasible or not recommended?
Best,
Andreas
Hey Andreas,
I'll confirm with your team if that's reliable. As it is not publicly documented, looks like something that we use internally and we cannot recommend the usage until the property is available on public documentation.
Hey Márcio,
Thank you very much. Reason I prefer this['childEvents'] over this.taskStore: The store is undefined in some cases.
Appreciate your help!
Best,
Andreas
Hey Andreas,
I confirmed with the team and you can use:
store.getChildren(record, true)
and the second argument is the unfiltered
property which is false by default (it's not documented yet, we'll have that fixed soon). https://github.com/bryntum/support/issues/9782