Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

This method returns all rows which are currently selected in a Rich Display File grid widget that is configured for row selection. The return value will be zero if the grid is not configured for row selection.

A grid is configured for row selection if the "row selection" property is set. Also, getSelectedCount() requires the "selection field" property to be set.

Example:

Code Block
javascript
javascript
var count = getObj("Grid1").grid.getSelectedCount();
alert("You selected " + count + " rows.");