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


Returns a String which represents the Name property (set on the server) for the corresponding GridTableView client object. Can be used to identify table in grid hierarchy client-side.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" AllowPaging="True" PageSize="3"
    OnNeedDataSource="RadGrid1_NeedDataSource" OnDetailTableDataBind="RadGrid1_DetailTableDataBind">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowSelected="rowSelected" />
    <MasterTableView DataKeyNames="CustomerID" CommandItemDisplay="Top" Name="Customers">
            <telerik:GridTableView DataKeyNames="OrderID" Name="Orders">
function rowSelected(sender, args) {
    var tableView = args.get_tableView();

    if (tableView.get_name() == "Customers") {
        alert("The selected record is from the main table.");
In this article