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 31, 2024
Forked from: /jeff/offline-grid-demo/
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 gridgrid.clear(refresh)
– Clear out a gridgrid.removeRow(row, refresh)
– Remove row number row from a gridgrid.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 gridgrid.replaceRecords(records, refresh)
– First clear grid, then calladdRecords
grid.splice(start, deleteCount, ...[records], refresh)
– Delete or insert one or more records from/to a grid, similar to Array.splicegrid.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()
).
More Spaces By gxvieux (@gxvieux)
129
0
0
148
0
0
Be the first to comment:
Comments