Access to grandparent of subgrid

I recently asked a question regarding accessing the grandparent:



dhtmlx.com/docs/products/kb/ … d%20parent



When I tried the provided solution (see link above) by using the parentGrid object, I get the same error as before (the object has no properties). Please help. I am so close to getting my project complete! Thanks!

We have tested the following changing:

dhtmlXGridObject.prototype._expandMonolite=function(n,show,hide){
    var td=this.parentNode;
    var row=td.parentNode;
    var that=row.grid;
    if ( that.parentGrid)  that.parentGrid.callEvent(“onGridReconstructed”,[])


The issue doesn’t appear in this case.

 

I got it working! Thanks! I was justing the wrong js file.  Perhaps it wasn’t the most up-to-date one. Thanks again!