New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


Property that returns a one-dimensional array of Telerik.Web.UI.GridColumn objects.

The following example illustrates how you could get the columns in the MasterTableView after the RadGrid is created:

<script type="text/javascript">
    function gridCreated(sender, args) {
        var grid = sender;
        var masterTableView = grid.get_masterTableView();
        var columns = masterTableView.get_columns();

        // alerts "ID" and "Name"
        for (var i = 0; i < columns.length; i++) {

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1"
    AllowPaging="true" PageSize="10">

        <ClientEvents OnGridCreated="gridCreated" />

    <MasterTableView DataKeyNames="ID">
            <telerik:GridBoundColumn DataField="ID" HeaderText="ID" UniqueName="ID">
            <telerik:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name">
In this article
Not finding the help you need? Improve this article