You can use jqGrid to create many different grids, grids, subgrids, etc. It is very important to understand if you want to display a grid with 10 rows or 100,000 rows. If you have 100,000 rows (or some other large number of rows), you will have to implement server-side swapping and data sorting. Therefore, if the user clicks the "next page" button, the following lines must be downloaded from the server. Why do you need to send all colModel data for a search query or sort? Therefore, you should clearly understand that in the server-side scenario, you need to create all the grid structures only once, and then only the grid body needs to be updated. Therefore, it would be nice to send all the information (column name, column model, data, ... right away).
Only if you have several hundred or several thousand rows in the grid and you can use the loadonce: true parameter, you can upload all the information (column name, column model, data, ...) once to a separate jQuery.ajax call, and then create a jqGrid using datatype: "local" and using the data parameter, which contains all the grid data.
UPDATED . If you need to change
Oleg Apr 24 '13 at 15:12 2013-04-24 15:12
source share