Remember (persist) the filter, sort order and current page of jqGrid

前端 未结 5 1119
面向向阳花
面向向阳花 2020-12-04 15:57

My application users asked if it were possible for pages that contain a jqGrid to remember the filter, sort order and current page of the grid (because when they click a gri

5条回答
  •  一向
    一向 (楼主)
    2020-12-04 16:28

    If the user logs in, you might be able to make AJAX requests back to the server when these parameters change. You could then save the settings, either to database (to make them permanent), to session (to persist them temporarily), or both (for performance reasons).

    In any case, with the parameters stored server-side, you could just send them to the page when it is requested.

提交回复
热议问题