Export (0) Print
Expand All

Sys.UI.Control parent Property

Gets or sets the parent control associated with the current control.

NoteNote

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel methods.

var _parent = MyControl.get_parent();
MyControl.set_parent(value);

Term

Definition

value

The parent control to associate with the current control.

A reference to the parent control of the current control.

Exception type

Condition

Error.invalidOperation

(Debug) value represents a control that is lower in the control hierarchy.

Use the parent property to get and set the parent control of the current control. If the parent property has not been set, when you get the parent property, the DOM is parsed to find the control that contains the current control.

Community Additions

Show:
© 2015 Microsoft