offline-grid-demo

About This Space

A demonstration of some of the client-side grid functions that could be used in an offline mobile environment.


Last updated on December 8, 2023

Public Permissions:   View   Open/Fork   Run   Comment  

Client-Side Grid Functions

This space illustrates the use of some of the client-side grid functions, which consist of:

  • grid.push(record, refresh) – Add a record to a grid
  • grid.clear(refresh) – Clear out a grid
  • grid.removeRow(row, refresh) – Remove row number row from a grid
  • grid.insertRow(row, ...[records], refresh) – Insert one or more records into a grid at row row.
  • grid.addRecords(records, refresh) – Add records passed in an array to a grid
  • grid.replaceRecords(records, refresh) – First clear grid, then call addRecords
  • grid.splice(start, deleteCount, ...[records], refresh) – Delete or insert one or more records from/to a grid, similar to Array.splice
  • grid.unshiftRow(record, refresh) – Insert record to the beginning of the grid

The refresh parameter is a Boolean that indicates if the grid should automatically refresh itself after the contents are changed. If multiple grid changes are being made, performance will be better if you delay the refresh until the last change is made (set this parameter to true for the last grid manipulation, or manually call grid.refresh()).

Be the first to comment:      

Comments

Write Preview Markdown: bold italic code link
Post

More Spaces By Jeff Berman (@jeff)

Filters:

Popular Recent

A fun example of how NodeRun widget appearances can be totally customized, with transition animations giving visual feedback.

5434

1

5