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
Copyright © 2017, Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.