# set_visible()

Property which sets the grid as visible or not on the client (changing the *style -> display* value of the grid div).

| **set_visible(bool)** |                                                              |
| --------------------- | ------------------------------------------------------------ |
| bool                  | Boolean parameter which accepts **true** or **false** values |

Example:

```JavaScript
function ShowGrid() {
    var grid = $find("<%=RadGrid1.ClientID %>");
    grid.set_visible(true);
}
function HideGrid() {
    var grid = $find("<%=RadGrid1.ClientID %>");
    grid.set_visible(false);
}
```

> note  In case RadGrid is bound on the server and you change its visibility using this property, after postback either from outer control or when performing operations like paging, sorting, etc. in the grid its initial visibility will be restored. The grid will keep its current visibility only when using[client-side binding](https://www.telerik.com/products/aspnet-ajax/documentation/controls/grid/data-binding/client-side-binding/client-side-binding).
