Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The applyFilter() method replace grid records with the records that satisfy the provided testing function.

...

  1. Callback function that receives the following arguments:
    1. Record object with properties for each field in the grid
    2. Index - the zero-based index of the current grid record being processed
    3. Records array - array representing all of the grid records

...

Code Block
languagejavascript
// Remove records where the "remove" Boolean Indicator was set to true
// In a Rich Display applicationsapplication, this may possiblycould be triggered by the user clicking a Remove button with a bound response property
display.grid.applyFilter(entry => !entry.remove);