Thank you, this sounds promising ) But when debugging the addJSONData funtction, I see the “ts.p.treeANode == -1” condition is always true. I have no idea what treeANode field stands for, so I'll recheck my data I fill the grid with..
Unfortunately, your advice didn't help for me, children nodes are still inserted incorrectly. Could you please share full working jqGrid package (I mean with your patches), so I could test it for my project?