This code
slickgrid.onDblClick.subscribe(function(e){
var cell = slickgrid.getCellFromEvent(e);
console.log(cell.row, cell.cell);
});
prints 0, 0
if I double click the first row, on the first column - and so on.
But since column order can change at any given time, I need to get its name using its index.
How to achieve this?
Just get a reference to the current columns array:
grid.getColumns()[cell.cell]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With