w2grid.replace

Replaces an existing record in the grid
replace(recid, record, noRefresh)
recid string, record ID to replace
record object, new record data
noRefresh boolean, optional, if true, does not refresh the row after replacement

Description

This method replaces an existing record in the grid with new data. It works with both regular records and summary records. If the record is found in the summary array, it updates the summary record; otherwise, it updates the regular records array. The method returns true if the record was successfully replaced, false if the record was not found.

User Comments

comments powered by Disqus