Sort column and readonly cells

Tags: #<Tag:0x00007efc64e796b0>

Greeting and happy new year.

In the example:handsOnTableExample

I want to sort my datas but when sorting, specific readonly cells are not updated.

I tried with the hook afterColumnSort but it break my table.

Do you have a solution ?

Thank you

Hi @alexandre.quere

Small change

hot2.getSourceDataAtCell(row, col) === 'Ford'

or

hot2.getSourceData()[row].brand === 'Ford'

Updated demo https://jsfiddle.net/handsoncode/zr39ctLu/

Amazing. bug fixed. Thank you @aleksandra_budnik.

1 Like