Open tibdev78 opened 2 weeks ago
I'm trying to prevent the node from expanding when the task is clicked, to detect expansion or collapse I use the onBeforeToggleNode event like this:
onBeforeToggleNode(event) { if(taskClick) { event.source.collapse(event.record.getData('id'); } }
The record identifier is received but nothing happens when the closure is triggered. How can I expand or collapse the node when I toggle it?
@tibdev78 Is this for nodes in the the TreeGrid or parent tasks in the Gantt chart?
Parent Tasks
Bryntum version: 5.6.12
Library used: Angular v16
I'm trying to prevent the node from expanding when the task is clicked, to detect expansion or collapse I use the onBeforeToggleNode event like this:
onBeforeToggleNode(event) { if(taskClick) { event.source.collapse(event.record.getData('id'); } }
The record identifier is received but nothing happens when the closure is triggered. How can I expand or collapse the node when I toggle it?