<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Users.aspx.cs" Inherits="NikaiDSR.Admin.Users" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
        function refreshGrid() {
            $find("<%=Grid.ClientID%>").get_masterTableView().rebind();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="content_holder">
        <div class="bg_shadow">
            <table border="2" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                <td width="350px" colspan="2">
                        <h1>
                            <asp:Literal ID="Literal1" runat="server" Text="Users" /></h1>
                    <br />
                    </td>
                </tr>
                <tr>
                    <td width="80%">
                        <telerik:RadComboBox ID="cmbCountry" runat="server" />
                        <telerik:RadComboBox ID="cmbRegion" runat="server" />
                        <telerik:RadComboBox ID="cmbLocation" runat="server" />
                        <telerik:RadComboBox ID="cmbRole" runat="server" />
                        <asp:Button ID="btnGo" runat="server" Text="Go" OnClick="btnGo_Click" />
                    </td>
                    <td width="20%">
                        <asp:Button ID="btnAdd" runat="server" Text="Add User" style="float:right" />
                    </td>
                </tr>
                </table>
                </div>
                <table border="2" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td colspan="3">
                        <br />
                        <telerik:RadGrid ID="Grid" runat="server" OnNeedDataSource="Grid_NeedDataSource" OnItemDataBound="Grid_ItemDataBound">
                            <MasterTableView>
                                <Columns>
                                    <telerik:GridBoundColumn DataField="Site_User_Id" UniqueName="Site_User_Id" Display="false"/>
                                    <telerik:GridBoundColumn HeaderText="Role" DataField="Role_Name" UniqueName="Role_Name" />
                                    <telerik:GridBoundColumn HeaderText="User Name" DataField="Name" UniqueName="Name" />
                                    <telerik:GridBoundColumn HeaderText="Email/Login" DataField="Email" UniqueName="Email" />
                                    <telerik:GridBoundColumn HeaderText="Location" DataField="Location_Name" UniqueName="Location_Name" />
                                    <telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status" />
                                    <telerik:GridTemplateColumn UniqueName="Edit">
                                        <ItemTemplate>
                                            <asp:Button ID="btnEditUser" runat="server" Text="Edit" />
                                        </ItemTemplate>
                                    </telerik:GridTemplateColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
    </div>

</asp:Content>
