Skip to content

gridphp/jqGridState

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

jqGridState

NOTE: This is Github migration of bitbucket's rpgkaiser Repo, and extended by Abu to make compatible with jqGrid v4.6.0

This jqGrid plugin persist various settings of jqGrid on page refresh. It includes column chooser, search filters, row selection, subgrid expansion, pager & column order.

To enable, make set property to true when initializing object.

To make it function, you must include these libs:

  • json2.js - //cdn.jsdelivr.net/json2/0.1/json2.min.js (JSON serializer)
  • jstorage.js - //cdn.jsdelivr.net/jstorage/0.1/jstorage.min.js (jStorage plugin)

Example

<script src="//cdn.jsdelivr.net/jstorage/0.1/jstorage.min.js" type="text/javascript"></script>	
<script src="//cdn.jsdelivr.net/json2/0.1/json2.min.js" type="text/javascript"></script>	
<script src="jqGrid.state.js" type="text/javascript"></script>	

<script>
var opts = {
	"stateOptions": {         
				storageKey: "gridStateCookie", // any storate name
				columns: true,
				filters: false,
				selection: true,
				expansion: false,					
				pager: false,
				order: true
				}
	};
	
	// ... represents existing grid options
	var grid = jQuery("#list").jqGrid( jQuery.extend( {...}, opts ) );
</script>	

About

Github migration of bitbucket's rpgkaiser repo

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published