w2grid.add

Adds a record or records to the grid.
add(record)
record object or array, record(s) to add
Returns integer.

Description

Adds a record or records to the grid by adding them into the .records array and calling the .refresh() method. The first and only argument record is the record object or an array of record objects. If you add multiple records at a time, it will only refresh the grid after all of them were added.
Returns the number of records it adds.
If you define grid as: You can add records by: or several at a time: See .records array for the structure of the record object.

User Comments

comments powered by Disqus