Sys.UI.Control visible Property
Gets or sets the visibility of the current Sys.UI.Control object.
Note
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)
Parameters
Parameter |
Description |
---|---|
value |
true to display the current element on the page, or false to hide the control. |
Return Value
true if the current element is visible; otherwise, false.
Exceptions
Exception type |
Condition |
---|---|
(Debug) An attempt was made to set the visible property value after the Control object's Sys.UI.Control.dispose method was invoked. |
Remarks
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.
See Also
Tasks
Creating Custom AJAX Client Controls