My new example illustrates how to cache the grid data client-side based on the current grid state. To do this we need to build a state key using current page index, page size, sort expressions and filter expressions:
Every time when we get new data we can store the result in our client-side cache:
and when the next grid command occur we can call explicitly updateGrid() method if we have already saved result for the current grid state:
1. Click on next page button to get the second page - server is requested:
2. Click on previous page button to get the first page - server is not requested:
Vladimir Enchev is Director of Engineering, Native Mobile UI & Frameworks
Subscribe to be the first to get our expert-written articles and tutorials for developers!