0

is there a way to edit cells in a Salesforce LWC LightningDatatable programatically and make those changes trigger the oncellchange event?

I want to be able to programmatically make edits (and make them visible) in a datatable column without changing the underlying data source.

1
  • What do you mean by programatically edit cell ? Like running a js snipper that will change the value in the cell and then trigger the oncellchange event ? Commented Sep 10, 2020 at 8:46

1 Answer 1

0

After a while of investigation I discovered edits can be apply using the draft values datatable property, which actually paint cells' backgrounds in yellow.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.