<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %>

<!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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <script type="text/javascript">
        function SelectSingleRB(sender) {
            alert(sender.id);
        }
    </script>
    <div>
        <table width="100%" cellpadding="0" cellspacing="0" border="0">
            <tr>
                <td>
                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td>
                                <telerik:RadGrid ID="grdFieldSelector" runat="server" AllowPaging="True" AllowCustomPaging="true"
                                    AllowSorting="True" GridLines="None" AllowFilteringByColumn="True" AutoGenerateColumns="true"
                                    DataSourceID="SqlDataSource1">
                                    <MasterTableView Width="100%">
                                        <Columns>
                                            <telerik:GridTemplateColumn ItemStyle-Width="20px" HeaderText="Select" UniqueName="rdo"
                                                AllowFiltering="false" HeaderStyle-Width="20px">
                                                <ItemTemplate>
                                                    <asp:RadioButton ID="radSelect" runat="server" onclick="SelectSingleRB(this)" />
                                                </ItemTemplate>
                                                <HeaderStyle></HeaderStyle>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn HeaderText="Select" UniqueName="chk" AllowFiltering="false"
                                                HeaderStyle-Width="20px" ItemStyle-Width="20px">
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkSelect" runat="server" />
                                                </ItemTemplate>
                                                <HeaderStyle></HeaderStyle>
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="chkCheckUncheckAll" runat="server" />
                                                </HeaderTemplate>
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" AlwaysVisible="true" />
                                    </MasterTableView>
                                    <HeaderStyle Font-Bold="true" Font-Names="Arial" />
                                    <ItemStyle Font-Names="Arial" />
                                    <AlternatingItemStyle Font-Names="Arial" />
                                    <ClientSettings AllowColumnsReorder="true" ReorderColumnsOnClient="false">
                                        <Selecting AllowRowSelect="true" />
                                    </ClientSettings>
                                    <GroupingSettings CaseSensitive="false" />
                                    <PagerStyle Mode="NextPrevNumericAndAdvanced" AlwaysVisible="true" PageButtonCount="5" />
                                </telerik:RadGrid>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="width: 100%">
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                    <tr style="height: 10px">
                                        <td colspan="2">
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 85%" align="right">
                                            <asp:Button ID="btnOK" Text="Ok" runat="server" Width="70px" />&nbsp;
                                        </td>
                                        <td align="left">
                                            <asp:Button ID="btnClose" Text="Cancel" runat="server" Width="70px" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr style="height: 5px">
                            <td>
                                <table border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblItemCollection" runat="server" Text="" Visible="false"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:HiddenField ID="hdnOrder" Value="" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [EmployeeID], [LastName], [FirstName], [Title], [TitleOfCourtesy] FROM [Employees]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
