Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Brendan on Oct 20, 2008 06:54
open dhtmlx forum
Access to grandparent of subgrid

I recently asked a question regarding accessing the grandparent:

http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=5584&ssr=yes&s=grand%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!
Answer posted by Support on Oct 20, 2008 09:56
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.

 

Answer posted by Brendan on Oct 20, 2008 10:39
I got it working! Thanks! I was justing the wrong js file.  Perhaps it wasn't the most up-to-date one. Thanks again!