w2grid.select

Selects records in the grid.
select(recid1, recid2, ...)
recid string, id of the record
Returns integer.

Description

Selects a record or records in the .records array and refreshes them on the screen. The record is identified by the .recid property, which is a required property for each record object. The method emits .onSelect event for each record it selects and returns the number of records it selects.
If you have grid defined in the following way: You can select records: There are two events related to selection of records: onSelect and onUnselect. Calling .select will trigger onSelect event.

User Comments

comments powered by Disqus