I'm using a tree grid based on the jQuery plugin jqGrid where I need to do some operations on all child nodes when a user expand a node.
My problem is getting the parent's node id. What I've been trying so far is using the loadComplete option which I know triggers on node expand and by inspecting the post parameters in firebug I see nodeid is correct.
loadComplete: function() {
$.dump($("#grid-table").getPostData()),
$.dump($("#grid-table").getPostDataItem('nodeid')),
$.dump($('#grid-table').getGridParam("nodeid"))
}
This is only giving me empty strings.