Add an id
field to your data and remove the idProperty
from your Memory store or set it to "id". When you want to update a row, use the id from the selected row and set name
to the new value.
nameStore.put({id:selectedRowId, name: userEnteredName});
Life is better when you generate primary keys rather than use business data because you run into problems when that business data needs to change.