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 visible Property

Gets or sets the visibility of the current Sys.UI.Control object.

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 v = MyControl.get_visible();
MyControl.set_visible(value)

Parameter

Description

value

true to display the current element on the page, or false to hide the control.

true if the current element is visible; otherwise, false.

Exception type

Condition

Error.invalidOperation Function

(Debug) An attempt was made to set the visible property value after the Control object's Sys.UI.Control.dispose method was invoked.

If no value is specified, the default behavior is for the element to be displayed on the page. If the visible property is set to false, the control will be hidden. It will occupy space on the page depending on the value of the visibilityMode property.

Community Additions

Show:
© 2015 Microsoft