loadonce in jqgrid

The loadonce option in jqGrid is used to load all the data at once from the server and then perform all the operations, such as sorting, filtering, and paging, on the client side. This can be useful when dealing with a small amount of data that can be easily handled by the client.

To use the loadonce option in jqGrid, you need to set it to true in the jqGrid configuration. Here's an example:

    url: "your_data_url",
    datatype: "json",
    loadonce: true,
    // other jqGrid configuration options

By setting loadonce to true, the grid will load all the data from the server at once and store it locally. Subsequent operations, such as sorting or filtering, will be performed on the client side without making additional server requests.

Please note that using loadonce can have performance implications if you have a large amount of data, as it will load all the data into the client's memory. It is recommended to use loadonce only for small datasets.

I hope this helps! Let me know if you have any further questions.