Delete section in bar view mode

Hi,

In tree mode I know there is the deleteSection function, is there anything I can use in bar view mode to delete a section.

My section is a list of people who match a certain criteria because they are assigned a task on a project. If I delete that assignment on the project they should not show in the list of people on the y axis. Rather than have to refresh the entire scheduler, is there a way I can just remove them?

Thanks,

Jeremy

Hi @jezzerwebb,

Please clarify which view you mean by “bar view mode”. Is it Timeline view?
https://docs.dhtmlx.com/scheduler/views.html

If it is, please use updateCollection method to update the list of section and remove that you want to hide.
https://docs.dhtmlx.com/scheduler/api__scheduler_updatecollection.html
Simple examle of usage: https://docs.dhtmlx.com/scheduler/snippet/8638f334