JavaScript
{grid.object}getParentObject Method
Syntax
{grid.Object}.getParentObject()
Returns
- resultobject
If the Grid component has a parent object, returns the parent object. If the Grid does not have a parent, returns false.
Description
Returns a pointer to the parent object
Discussion
If this component was opened from a parent Grid or UX component, returns a pointer to the parent object so you can execute methods on the parent object.
var pObj = {grid.object}.getParentObject(); //If there is no a parent, 'pObj' will be false if(pObj) { if(pObj.gridId) { // Parent is a Grid component } if(po.dialogId) { // Parent is a UX component } }
See Also