Telerik Extensions for ASP.NET MVC

Makes the column visible or not. By default all columns are visible. Invisible columns are not rendered in the output HTML.

Namespace: Telerik.Web.Mvc.UI.Fluent
Assembly: Telerik.Web.Mvc (in Telerik.Web.Mvc.dll) Version: 2012.2.611.235 (2012.2.611.235)

Syntax

C#
public TColumnBuilder Visible(
	bool value
)
JavaScript
function Visible(value);

Parameters

value
Type: System..::..Boolean

Examples

CopyC#
 <%= Html.Telerik().Grid(Model)
            .Name("Grid")
            .Columns(columns => columns.Bound(o => o.OrderID).Visible((bool)ViewData["visible"]))
%>

See Also