New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
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);
}
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 usingclient-side binding.