I have a data source with over 10,000 records. And I want to implement lazy loading with JqGrid. This is my approach:
- Back-end: SQL stored procedure to select data by page, page size, where expression and sort(order by) expression.
- Font-end: send request to get data to Web Method (web service) with: page, page size, where expression, sort expression.
- JqGrid: load data to jqGrid
Here is the main issue: - I can't overwrite the page count, records count of jqGrid. e.g. The pager info always display [page 1 of 1] and [records 1-50 of 50] if page = 1 and page size = 50. - Thus, I can't use the paging button of jqGrid
I thought about implement custom paging infor (pages, records, paging button) but it will take time and effort. So it's better to reuse jqGrid paging, isn't it?
Does this approach good enough? Or what I need to improve?
Update: I tried to implement json reader at Can I implement lazy loading with jqGrid? but no luck.
If I need to update any information, please tell me.
Thanks in advance.