[Aggrid] Position of new virtual column

I feel really silly for asking this, but cant for the life of me find anything in the doco to let me insert a new virtual column at a speciffic position. (Using the GridOptionsBuilder)

I tried something like…


gb.configure_column("Cost Per AH", valueGetter='Number(data.Capacity) + Number(data.Cost)', initialSortIndex=1)

But it ignores the index altogether… Im sure its super obvious but im missing it somehow…

any help advice would be grealy appreciated!

1 Like