Title: JqGrid with PHP
Tags: jqgrid
Question: i save jqGrid setting in localStorage after make column hide,show,resize and reordering them.
all is done but colName cannot be saved in localStorage.
below my function which i used for save and load grid
function saveGrid(grid)
{
var gridData = $('#grid').jqGrid('getGridParam');
var gridDataAsString = JSON.stringify(gridData);
localStorage.setItem("GridParam", gridDataAsString);
getColumn();
function loadGrid()
var loadedGridDataAsString = localStorage.getItem("GridParam");
if (loadedGridDataAsString != null)
var loadedGridData = JSON.parse(loadedGridDataAsString);
$("#grid").jqGrid('setGridParam', loadedGridData);
$("#grid").trigger('reloadGrid');
}


Here is another answer: I think that there are misunderstanding about the usage of setGridParam and reloadGrid. Some options of jqGrid will be used only during creating of the grid. Some other options will be used during every filling of the grid. Only the subset of options can change results of the grid after reloadGrid.
So I recommend you to load the information from localStorage before creating of the grid.
If you really need to update column headers after grid is created you should do changes of the textes manually like in the answer.
Comment for this answer: i got then solution from other way. i so so happy today

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2013:00:06/30/13', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<jqgrid>', 'Title': 'JqGrid with PHP', 'ViewCount': 73, 'id': 17392775, 'user_AboutMe': None, 'user_AccountId': None, 'user_DisplayName': None, 'user_Reputation': None, 'user_Views': None, 'user_id': None}}