<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Selecting.aspx.cs" Inherits="Selecting" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">

        <script type="text/javascript">
        function GetSelectedItems()
        {
            alert($find("<%= RadGrid1.ClientID %>").get_masterTableView().get_selectedItems()[0]);
        }
        function Selected()
        {
            alert("selected");
        }
        </script>

    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        
    <telerik:RadGrid ID="RadGrid1" Width="500px"
        runat="server" AllowPaging="true" PagerStyle-AlwaysVisible="true" AllowSorting="true" AllowMultiRowSelection="true" PageSize="30">
        <MasterTableView AllowCustomPaging="true" >
            <Columns>
                <telerik:GridClientSelectColumn></telerik:GridClientSelectColumn>
            </Columns>
        </MasterTableView>
        <%--<ClientSettings EnableRowHoverStyle="true" EnablePostBackOnRowClick="false">
            <Scrolling AllowScroll="true" UseStaticHeaders="false" />
            <Selecting AllowRowSelect="True"  />
            <ClientEvents OnRowSelected="Selected" />
        </ClientSettings>--%>
        <ClientSettings> 
            <ClientEvents OnRowSelected="Selected" /> 
            <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> 
            <Resizing AllowColumnResize="True" EnableRealTimeResize="True" ClipCellContentOnResize="false" /> 
        </ClientSettings> 
    </telerik:RadGrid>
        
       
    </div>
    </form>
</body>
</html>
