bogus said:
Hi all,
I have strange problem:
Girid is imported from json like this:
$('#table1').jqGrid('jqGridImport',{imptype: 'json', impurl: 'table_json.php?table_id=38'});
$('#table1').jqGrid('navGrid','#pagertable1',{edit:false,add:false,del:true},{},{},{'mtype':'GET'});
$('#table1').jqGrid('inlineNav','#pagertable1',{editParams : {'mtype' : 'GET',oneditfunc:ed_table1},addParams:{addRowParams:{oneditfunc:addr_table1}}});
And Navigator is not shown in Firefox, Chrome. In Chrome there is error in console:
Uncaught TypeError: Cannot read property 'id' of undefined jquery.jqGrid.min.js:337.
Strange thing, if i change code like this:
$('#table1').jqGrid('jqGridImport',{imptype: 'json', impurl: 'table_json.php?table_id=38'});
alert(111);
$('#table1').jqGrid('navGrid','#pagertable1',{edit:false,add:false,del:true},{},{},{'mtype':'GET'});
$('#table1').jqGrid('inlineNav','#pagertable1',{editParams : {'mtype' : 'GET',oneditfunc:ed_table1},addParams:{addRowParams:{oneditfunc:addr_table1}}});
Firefox shows Navigator, and it is working.
The same thing with othee grid methods: