$(document).ready(function() { $(\"#list1\").jqGrid({ url: \'example1.php\', /*balabala...*/ gridComplete: function() { } })
You should be currently using the jquery deferred objects.