Question

I am trying to use Dojo's dGrid as a replacement for jqGrid because it cannot do multiple-line row data. The dgrid site has a sample pagination that retrieves data once and does the pagination multiple times. I am concern with this because it may cause performance problem if the data is already too large. I was wondering if dGrid has an option to do pagging while requesting data for each pagination.

The source example in the dojo site.

http://dojofoundation.org/packages/dgrid/tutorials/grids_and_stores/demo/Pagination.html

I checked the option for Pagination and there seems to be no logic to change the behavior of the store.

https://github.com/SitePen/dgrid/wiki/Pagination

Also, for the store data query. Is the data only filtered by client based.

Edited After answer:

I noticed that the following question also partially answer this question. Adding for future reference. -nap Related

Was it helpful?

Solution

Dojo has a standard Store API which all data-driven components use, including dgrid. The dgrid demo uses a basic Memory store which is not appropriate for a production site. You would implement and use a JsonRest or similar store for your server instead of a Memory store to use with your production site.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top