Grid Client Side API
Id | Person | Food | Price | Date | Location |
3675 | Mary | Shepherd's pie | 18 | 11/19/2022 | Diner |
3671 | Jeremy | Pizza | 79 | 6/13/2010 | Tavern |
3667 | John | Cheesecake | 100 | 9/25/2015 | Restaurant |
3663 | Michael | Hot Beverage | 20 | 2/13/2012 | Visit |
3659 | Gabrielle | French toast | 45 | 5/19/2016 | Tavern |
3655 | Lucy | Big Salad | 70 | 4/3/2019 | Tavern |
3651 | Cheyenne | Big Salad | 70 | 11/1/2017 | Visit |
3647 | Jonah | Shepherd's pie | 23 | 4/27/2020 | Visit |
3643 | Fernando | Soup | 50 | 5/7/2010 | University |
3639 | Audrey | Shepherd's pie | 70 | 5/17/2011 | University |
Client side api is called by doing $('#gridId').data('api')
and an api method
.load({ reset: true })
- will bring the grid back to the initial state defined in the markup-
.load({group, sort, params, oparams})
- loads the grid with the specified grouping rules, sorting and additional parameters, if a property is omitted than the grid won't change it's state for that property; for example calling.load({group: ['Food', 'Location']})
will change the grouping but won't affect the current sorting rules .clearpersist()
- clears the persistence data
Events
Comments