Get column of edited cell

Simon asked 6 days ago

I am trying to let the user edit cells, and I’m using the “datachanged” callback.
I’ve looked at your example here
The problem is that I’m trying to work out which column has been updated in the case that there are multiple columns.
The ‘id’ returns the row number, but in the example how do we know that it the “Price” column being updated?
For example if I have two columns “Price” and “Quantity” in the example, and I edit the quantity it only tells me:
field: undefined, rowId: 2, new value: 2, previous value: 3
How can I tell if it is the “Price” or “Quantity” being updated?

2 answers

Dmytro Zvazhii Flexmonster 6 days ago

Hello Simon,
Thank you for writing to us.
The field property is supposed to return the uniqueName of the column. Currently, the data you are looking for is available under the wrong key "Kda". We will add the necessary update to make it work as expected, ETA Jun 18.
Please let us know if everything works fine for you.

Simon 6 days ago

Thanks for the quick reponse! This works now using “Kda”

Please login or Register to Submit Answer