Hi everybody,
I try to reload my grid with the search parameters I got when I went to another page and I come back to the grid, so for the beginning, I tried with hard-coded parameters.
When I try this in a click function, it goes very well:
<a href="javascript:void(0)" id="r">reload</a>
jQuery('#list').click(function(){
$('#list').jqGrid('setGridParam', {search: 'true'});
$('#list').setPostDataItem('LANGUAGE_CODE', 'EN');
$('#list').trigger('reloadGrid');
})
But when I put the three lines of code in the loadComplete of the grid, the reloadGrid does not trigger.
Even if I, in the loadComplete, trigger the click function of the a link, it does not make anything.
Can someone explain what's is wrong in this, or show me the way to achieve this correctly ?
Thank you in advance,
Michel