Coincidently I spend the last night also wondering how to have a single tree expanded right after loading the page.
My solution was like this. It also needs this magical setTimeoutFunction(… , 0) which I cannot quite make sense of but then uses
the .click() function to avoid trying to figure out which jqGrid API functions are neccessary:
gridComplete: function() {