getAttachedObject

returns the object attached to a cell

string|object getAttachedObject();

Returns

string|objectattached object

Example

var myGrid = dhxComponent.cells(id).attachGrid({...});
 
// somewhere in other place
var obj = dhxComponent.cells(id).getAttachedObject();
if (typeof(window.dhtmlXGridObject) == "function" && obj instanceof dhtmlXGridObject) {
    // code related to grid
} else {
    // some other code
}

Back to top