-
Notifications
You must be signed in to change notification settings - Fork 428
API Reference
milaniliev edited this page May 27, 2011
·
42 revisions
Instead of passing SlickGrid an array of row objects, you can pass an object that holds (and updates!) all your rows. This object, which SlickGrid calls a Model, only needs to respond to a simple API:
model.getItem(i) // Returns the ith row
model.getLength() // Returns the number of itemsIf you modify the nth row, you will need to tell the grid that the row is invalid, and then call render() to update it:
grid.invalidateRow(n)
grid.render()You can also call grid.invalidateRows() to invalidate a lot of rows at once, and, if you just want to re-draw the whole grid, call grid.invalidate() (which doesn't seem to need a render() call after.)
SlickGrid Repo
- Home
- The SlickGrid Manifesto
- The SlickGrid Community
- BugFix List
- Enhancement List
- Sharing Sample Pages
- Announcement & Migration to 3.0.0
- Announcement & Migration to 4.0.0
- Announcement & Migration to 5.0.0
Jump Start
Resources
- API Reference
- Grid
- Grid Options
- Auto Column Sizing
- Column Options
- Grid Events
- DataView
- DataView Events
- Providing data to the grid
- Plugins & Third-party packages
- CSP Compliance
Learning
Tests
Contact/Support