w2grid.toggle

Toggles record between expand and collapse states.
toggle(recid)
recid string, recid of the record to toggle
Returns undefined.

Description

This method will try to collapse previously expanded record or expand previously collapsed record. It will internally call .expand() or .collapse() methods.
If you have grid defined in the following way: You can toggle record:

User Comments

comments powered by Disqus