I would like to get my datagrid results on page through records like ESRI Sample here:
Query with Feature Layer | ArcGIS API for JavaScript
The sample using Feature Layer and return the object ids for all the records that match. I am not sure how to change this line of code under queryRecordBy Page function for query.objectIds = pageInfo.results.slide(begin, end) since not using objectIds at all.
Here is JSFiddle:
http://jsfiddle.net/MayJeff00/9nkasc43/
Thank you.
Hi May,
Here's the modified JSFiddle with paging.
Edit fiddle - JSFiddle
Is there a reason you want to stick with Dojox DataGrids rather than switching over the the new dGrid?
Sometimes results return more than 300, and would need it to shows 50 records per page. Or do you have other method to perform this task? I only find this ESRI Sample can do #records per page..
dGrid is the replacement for DataGrid and contains an extension (about halfway down the page) that allows you to set how many records to show at a time. This test page shows the many customizations you can do with the Pagination extension.
Thank you very much. It works so well.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.