Datatable cell not changed on trigger automatically (bug maybe?)

Hi,

Here is my datatable sampe snippet: https://snippet.webix.com/gesadexv

When I change value of a cell, it will trigger to update another cell in the same row using onAfterEditStop function.

But it wasn’t update automatically, it needs me to select different rows several times in order to the update take place.

Am I missing something here?

you need to use table.updateItem to make changes reflected
try this

       onAfterEditStop: function(state, editor) { 
         let item = this.getItem(editor.row);
         
         let subtotal = parseInt(item.amount) * parseFloat(item.book_price);
         this.updateItem(editor.row, {total_price:subtotal});
       }

Awesome!! Thanks @integral for the hint…