Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Sys.UI.Control id Property

Gets the identifier for the current Sys.UI.Control object.

NoteNote

To get property values for client API properties, you must call the property accessor method that is named with the get_ prefix. For example, to get a value for a property such as cancel, you call the get_cancel method.

var i = MyControl.get_id();

Parameter

Description

value

The identifier.

The identifier for the current Control object. The default is the id value of the associated Sys.UI.DomElement object.

Exception type

Condition

Error.invalidOperation

An attempt was made to set the value of Control.id.

The base implementation of this property does not let you set the value of the id property after the control has been initialized. Instead, set this property in the $create statement that adds the control to the application, or use the default value.

Community Additions

Show:
© 2015 Microsoft