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
54 stars 6 forks source link

Moving a column fires too many events #2648

Closed matsbryntse closed 11 months ago

matsbryntse commented 3 years ago

https://bryntum.com/examples/grid/state/

grid.columns.on('change', console.log)

Try using store#move.

Add new 'columnmove' event?

image

{record: NumberColumn, changes: {…}, source: ColumnStore, type: "beforeupdate"}
Events.js:1146 {records: Array(1), parent: Column, source: ColumnStore, type: "beforeadd"}
Events.js:1146 {parent: Column, records: Array(1), isMove: true, source: ColumnStore, type: "beforeremove"}
Events.js:1146 {action: "remove", parent: Column, isChild: true, isMove: true, records: Array(1), …}
Events.js:1146 {action: "remove", parent: Column, isChild: true, isMove: true, records: Array(1), …}
Events.js:1146 {action: "add", parent: Column, isChild: true, isMove: {…}, records: Array(1), …}
Events.js:1146 {action: "add", parent: Column, isChild: true, isMove: {…}, records: Array(1), …}
Events.js:1146 {record: NumberColumn, changes: {…}, batch: false, fromRelationUpdate: undefined, source: ColumnStore, …}
Events.js:1146 {action: "update", record: NumberColumn, changes: {…}, batch: false, fromRelationUpdate: undefined, …}
matsbryntse commented 11 months ago

will be fixed in 6.0