<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UserGroupSearch.ascx.cs" Inherits="Zap.BI.Portal.Controls.UserControls.UserGroupSelector.UserGroupSearch" %>

<table style="height: 32px">
    <tr>
        <td>
            <asp:RadioButtonList ID="UserGroupFilter" runat="server" RepeatDirection="Horizontal" AutoPostBack="true" OnSelectedIndexChanged="UserGroupFilter_SelectionChanged" Width="100%" CssClass="ui-form-label">
                <asp:ListItem Value="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Both %>" Text="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Both %>" />
                <asp:ListItem Value="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Groups %>" Selected="True" Text="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Groups %>" />
                <asp:ListItem Value="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Users %>" Text="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, Label_Users %>" />
            </asp:RadioButtonList>
        </td>
        <td>
            <asp:ImageButton runat="server" ID="RefreshButton" OnClick="RefreshButton_Click" ToolTip="<%$ Resources: Controls.UserControls.UserGroupSelector.UserGroupSearchText, ToolTip_Refresh %>" />
        </td>
    </tr>
</table>

<dxwgv:ASPxGridView runat="server" ID="UserGroupGridView" EnableCallBacks="false" KeyFieldName="FullName"
    CssClass="static-grid-view large-rows has-filter has-resizable-columns"
    Styles-Header-CssClass="grid-header-cell"
    Styles-FilterCell-CssClass="grid-filter"
    Styles-Row-CssClass="grid-row"
    Styles-EmptyDataRow-CssClass="grid-empty"
    Styles-Disabled-CssClass="is-disabled"
    Styles-SelectedRow-CssClass="is-selected"
    Styles-FocusedRow-CssClass="has-focus"
    Styles-PagerBottomPanel-CssClass="grid-pager">
    <Settings ShowFilterRow="True" ShowFilterRowMenu="True" ShowVerticalScrollBar="true" VerticalScrollableHeight="400" />
    <SettingsBehavior ColumnResizeMode="Control" AllowMultiSelection="true" />
    <SettingsCustomizationWindow Enabled="true" PopupHorizontalAlign="LeftSides" PopupVerticalAlign="TopSides" PopupHorizontalOffset="30" PopupVerticalOffset="30" />
    <SettingsPager PageSize="2000" />
    <Columns>
        <dxwgv:GridViewDataColumn FieldName="FullName" Caption="<%$ Resources: Controls.UserControls.ModalPopups.ModalPopupText, Label_UsersAndGroups %>" VisibleIndex="1" Width="100%" SortOrder="Ascending">
            <Settings AutoFilterCondition="Contains" />
        </dxwgv:GridViewDataColumn>
    </Columns>
    <Styles CssPostfix="DE">
        <AlternatingRow Enabled="True" />
    </Styles>
</dxwgv:ASPxGridView>
