Hide lightbox section dynamically?

Hi,

I would like to have few lightbox sections hidden dynamically. How can i do this?

got this by using

$(gantt.getLightboxSection('user_for').header).parent().hide() [<div class=​"gantt_wrap_section" style=​"display:​ none;​">​…​</div>​]

Hi,
there may be a couple of working approaches, depending on how you’re going to use this functionality.
If you want it to show different set of sections for different tasks, you can catch onBeforeLightbox event, remove unneeded sections from the list of options and reset lightbox, e.g.
docs.dhtmlx.com/gantt/snippet/859055c1