What is the best practice to compute derived columns in a grid using local data? For example, if my data contained columns for Quantity, Price, and Total (where Total = Quantity * Price)...
myData = [{quantity: 100, price: 5, total: 500},
{quantity: 200, price: 2, total: 400} ,
{quantity: 10, price: 15, total: 150}
]
How/where should I handle the computation such that my grid will update in real-time as the user makes edits?