Mini Kabibi Habibi

Current Path : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/MVCDemos/Views/Editors/
Upload File :
Current File : C:/Users/Public/Documents/DXperience 13.1 Demos/ASP.NET/CS/MVCDemos/Views/Editors/CheckBoxList.aspx

<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
<asp:Content ID="indexContent" ContentPlaceHolderID="ContentHolder" runat="server">
    <% 
        Html.BeginForm();
        CheckListDemoOptions options = (CheckListDemoOptions)ViewData["Options"]; 
    %>
        <div class="vertComponentContainer" style="width:500px">
            <% 
                Html.DevExpress().CheckBoxList(
                    settings => {
                        settings.Name = "checkBoxList1";
                        settings.Properties.ValueField = "ID";
                        settings.Properties.TextField = "Name";
                        settings.Properties.RepeatLayout = options.RepeatLayout;
                        settings.Properties.RepeatDirection = options.RepeatDirection;
                        settings.Properties.RepeatColumns = options.RepeatColumns; 
                    }
                )
                .BindToXML(MapPath("~/App_Data/ProgLanguages.xml"), "//Language")
                .Render();
            %>
        </div>
            
        <div class="vertOptionsPanel">
            <div>
                <label for="RepeatLayout">Layout:</label>
                <%= Html.DropDownList("RepeatLayout", CheckListDemoHelper.GetRepeatLayouts(), new { style = "width:100px" })%>
            </div>
            <div style="float: none;">
                <label for="RepeatDirection">Direction:</label>
                <%= Html.DropDownList("RepeatDirection", CheckListDemoHelper.GetRepeatDirections(), new { style = "width:100px" })%>
            </div>
            <div style="float: none;">
                <label for="RepeatColumns">Repeat Columns:</label>
                <%= Html.DropDownList("RepeatColumns", CheckListDemoHelper.GetRepeatColumns(), new { style = "width:100px" })%>
            </div>
            <input type="submit" value="Apply" />
        </div>
    <% Html.EndForm(); %>
</asp:Content>