Our blazing fast Grid component built with pure JavaScript


Post by henrique »

Exists an event in the grid that notify a change of the position of a column in the grid? Giving to me the current and the new index?


Post by tasnim »

Hello henrique,

You could listen to https://bryntum.com/products/grid/docs/api/Grid/data/ColumnStore#event-update event. It will fire when the columnStore upates

grid.columns.on('update', (event) => console.log(event));

Post by henrique »

Nice, this event has the information I need. But still a problem. In the example https://www.bryntum.com/products/grid/examples/columndragtoolbar/, registering the event like you show and analysing the log, the "oldValue", in the "parentIndex" is always the same, but the current index of the column isn't this. And when you put the column back in the original position, the "oldValue" go to undefined.

I guess this is wrong, and can be fixed?


Post by tasnim »

Thanks for your report. Reproduced! Opened a ticket to investigate it. Here it is https://github.com/bryntum/support/issues/6102

Good Luck :),
Tasnim


Post Reply