<%@ Page Language="vb" MasterPageFile="~/WFAdmin/ModalAdminPage.master" AutoEventWireup="false" Title="Form Grid" CodeBehind="FormGridConfig.aspx.vb" Inherits="WebFoundations.WFForms.UI.FormGridConfig" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="~/WFControls/WFForms/FormPicker.ascx" TagName="FormPicker" TagPrefix="wff" %>
<asp:Content runat="server" ContentPlaceHolderID="MainContent">
    <div class="fields no-columns form-grid-config">
        <div>
            <wff:FormPicker runat="server" id="picker" />
        </div>
        <div>
            <asp:Literal runat="server" ID="msg" />
        </div>
        <div>
            <telerik:RadGrid runat="server" ID="grdFields" AutoGenerateColumns="false" AllowPaging="False" AllowMultiRowSelection="true">
                <MasterTableView>
                    <Columns>
                        <telerik:GridDragDropColumn HeaderStyle-Width="1.5em" Visible="true" />
                        <telerik:GridTemplateColumn HeaderText="Campo" UniqueName="Name">
                            <ItemTemplate>
                                <asp:HiddenField ID="hdMandatory" runat="server" />
                                <asp:Label ID="lblName" runat="server" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Mostrar" ItemStyle-CssClass="show" UniqueName="Display">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkShow" runat="server" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Titulo" UniqueName="Title">
                            <ItemTemplate>
                                <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                    </Columns>
                </MasterTableView>
                <ClientSettings AllowRowsDragDrop="True" AllowColumnsReorder="false" ReorderColumnsOnClient="false">
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
                    <Scrolling AllowScroll="false" />
                </ClientSettings>
            </telerik:RadGrid>
        </div>

        <section class="actions">
            <asp:Button runat="server" ID="btnSave" />
            <asp:Button runat="server" ID="btnCancel" OnClientClick="CancelEdit();" />
        </section>
    </div>
</asp:Content>
