w2grid.set

Finds the record and extends it with provided object.
set([recid], record, [noRefresh])
recid string, optional, id of the record
record object, record object
noRefresh boolean, optional, indicates if record does not need to be updated on screen
Returns boolean.

Description

This method will update the record in the .records array and refresh it on the screen (assuming if noRefresh is not provided). The record is identified by the .recid property of the record object, however, if not supplied, it will update all records. The second argument record is the record object. The method returns true is at least one record was updated or false otherwise.
If you have grid defined in the following way: You can update record with recid = 2: Or you can update one parameter in all records: Please note that the record is not replaced with record, but extended using $.extend() method.

User Comments

comments powered by Disqus