toggle()



This method toggles (collapses or expands) all rows in a Rich Display File grid configured with row folding.

Parameters:

  • reference to button image - if this parameter is passed, the image is updated with the "expand all" or "collapse all" icon (Optional)

Example:

getObj("Grid1").grid.toggle();