terryg said:What is the correct way to code the root node of a JSON, AJAX-loaded tree to render with only the root node expanded? I tried various combinations of expandRow(), expandNode(), and click(), but I couldn't get any of them to work. Most of my attempts have been inside the gridComplete() handler.
This method worked for me. I hope it helps: (not sure why the expandRow and expandNode only work within the setTimeout function)
var mygrid = jQuery('#grid').jqGrid({
…
gridComplete: function() {