I used to be able to get the perent node in a treeGrid by doing what is described in the wiki (http://www.trirand.com/jqgridwiki/doku.php?id=wiki:treegrid#methods).
But this no longer seems to work
I am using the treeGrid nessted model.
I was going:
var parentNodeId = grid.getNodeParent(grid.getInd(selectedRowId, true)).id;
I'm not sure if its a bug in the getNodeParent or getInd
It seems that getNodeParent is expecting a raw grid data record. But getInd is returning DOM for the rowId
I can get the parent node buy going:
var record = null;
for (i=0; i< grid[0].p.data.length; i++)
{
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top