bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Node does no collapse or expand in the onBeforeToggleNode event #10050

Open tibdev78 opened 2 weeks ago

tibdev78 commented 2 weeks ago

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?

matsbryntse commented 2 weeks ago

@tibdev78 Is this for nodes in the the TreeGrid or parent tasks in the Gantt chart?

tibdev78 commented 1 week ago

Parent Tasks