There are two grid at my page. When a row is clicked at first grid data loads to another grid. When I click any of row at first time it works well. However it doesn’t work at second click. This is my function:
onSelectRow: function (deviceGroupId) {
$("#" + deviceGridId).jqGrid('setGridParam', {
url: deviceGroupUrl + '/' + deviceGroupId
}).trigger('reloadGrid');
}
Any ideas?
You don’t posted the grid definition which is very important to understand your problem. So I try to guess. I suppose, that you use
loadonce: truein the second (detail) grid. The option will be used in combination withdatatype: 'json'ordatatype: 'xml'. After the first load thedatatypewill be changed to ‘local’. As the result the local sorting and local paging of data will be used. On every sorting for example the grid will be reloaded, but with the local data.If you need to reload the data having
loadonce: trueoption once more time from the server you have to changedatatypeparameter to its original value, likedatatype: 'json':